X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FInnoDBIndexer.php;h=6060ddcc2ade4b32a8cc02096efd703b4ca5d2f1;hb=e09b101fec3c877f80db9d1b65bebc836d7f8e43;hp=123792a656b1bba446b42c2dc71989afb889fc2d;hpb=3b1e452b9449056fef9e225e7b6988322bc1229f;p=civicrm-core.git diff --git a/CRM/Core/InnoDBIndexer.php b/CRM/Core/InnoDBIndexer.php index 123792a656..6060ddcc2a 100644 --- a/CRM/Core/InnoDBIndexer.php +++ b/CRM/Core/InnoDBIndexer.php @@ -101,9 +101,13 @@ class CRM_Core_InnoDBIndexer { } /** - * @var array (string $table => array $indices) + * Indices. + * + * (string $table => array $indices) * * ex: $indices['civicrm_contact'][0] = array('first_name', 'last_name'); + * + * @var array */ protected $indices; @@ -115,8 +119,8 @@ class CRM_Core_InnoDBIndexer { /** * Class constructor. * - * @param $isActive - * @param $indices + * @param bool $isActive + * @param array $indices */ public function __construct($isActive, $indices) { $this->isActive = $isActive; @@ -206,7 +210,8 @@ class CRM_Core_InnoDBIndexer { * (string $indexName => string $sql) */ public function buildIndexSql($table) { - $sqls = []; // array (string $idxName => string $sql) + // array (string $idxName => string $sql) + $sqls = []; if ($this->isActive && isset($this->indices[$table])) { foreach ($this->indices[$table] as $fields) { $name = self::IDX_PREFIX . md5($table . '::' . implode(',', $fields));