Merge pull request #15729 from civicrm/5.19
[civicrm-core.git] / CRM / Utils / Hook / WordPress.php
index 2aa09b31be14614ee28bbebe3b72299e617aa127..823803727bc86ccf8f2273a6b362fede581d8abe 100644 (file)
@@ -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);
       }