private $isBuilt = FALSE;
/**
- * @var array(string)
+ * @var string[]
*/
private $allModules = NULL;
/**
- * @var array(string)
+ * @var string[]
*/
private $civiModules = NULL;
/**
- * @var array(string)
+ * @var string[]
*/
private $wordpressModules = NULL;
/**
- * @var array(string)
+ * @var string[]
*/
- private $hooksThatReturn = array(
+ private $hooksThatReturn = [
'civicrm_upgrade',
'civicrm_caseSummary',
'civicrm_dashboard',
- );
+ ];
/**
* Invoke hooks.
}
-
/**
* Build the list of plugins ("modules" in CiviCRM terminology) to be processed for hooks.
*
}
// initialise with the pre-existing 'wordpress' prefix
- $this->wordpressModules = array('wordpress');
+ $this->wordpressModules = ['wordpress'];
// Use WordPress Plugin API to build list
// a plugin simply needs to declare its "unique_plugin_code" thus:
}
if ($this->civiModules === NULL) {
- $this->civiModules = array();
+ $this->civiModules = [];
$this->requireCiviModules($this->civiModules);
}