Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / Civi / Angular / Page / Main.php
index aa31fef7112d16ab89827d56f20384ace0609a14..c844fd3cc04b2b9a31b7d13e5fd0233c0a0d6dbd 100644 (file)
@@ -37,7 +37,7 @@ class Main extends \CRM_Core_Page {
   /**
    * The region of the page into which JavaScript will be loaded.
    *
-   * @var String
+   * @var string
    * @deprecated
    */
   public $region;
@@ -76,10 +76,10 @@ class Main extends \CRM_Core_Page {
   public function registerResources() {
     $loader = new \Civi\Angular\AngularLoader();
     $loader->setPageName('civicrm/a');
-    $loader->useApp(array(
+    $loader->useApp([
       'activeRoute' => \CRM_Utils_Request::retrieve('route', 'String'),
       'defaultRoute' => NULL,
-    ));
+    ]);
     $loader->load();
 
   }