X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook%2FWordPress.php;h=823803727bc86ccf8f2273a6b362fede581d8abe;hb=73e57781380c5e928082d48d3a7e61ed1f339f78;hp=2aa09b31be14614ee28bbebe3b72299e617aa127;hpb=49cfbaed65e6920698d83b57985df1eb228479a2;p=civicrm-core.git diff --git a/CRM/Utils/Hook/WordPress.php b/CRM/Utils/Hook/WordPress.php index 2aa09b31be..823803727b 100644 --- a/CRM/Utils/Hook/WordPress.php +++ b/CRM/Utils/Hook/WordPress.php @@ -38,28 +38,28 @@ class CRM_Utils_Hook_WordPress extends CRM_Utils_Hook { 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. @@ -160,7 +160,6 @@ class CRM_Utils_Hook_WordPress extends CRM_Utils_Hook { } - /** * Build the list of plugins ("modules" in CiviCRM terminology) to be processed for hooks. * @@ -183,7 +182,7 @@ class CRM_Utils_Hook_WordPress extends CRM_Utils_Hook { } // 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: @@ -197,7 +196,7 @@ class CRM_Utils_Hook_WordPress extends CRM_Utils_Hook { } if ($this->civiModules === NULL) { - $this->civiModules = array(); + $this->civiModules = []; $this->requireCiviModules($this->civiModules); }