X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FCore%2FThemes.php;h=9156eb55588d081372a7ebf1b35859b9b113001f;hb=5e884aa11e68bdba189d729d6cf6c17abf9956df;hp=8e7dc5988dc4e81904cd713ee6776b22f9b05c58;hpb=ca5fb3d15ba89ea5d6002735420f3e5238ebb4d5;p=civicrm-core.git diff --git a/Civi/Core/Themes.php b/Civi/Core/Themes.php index 8e7dc5988d..9156eb5558 100644 --- a/Civi/Core/Themes.php +++ b/Civi/Core/Themes.php @@ -133,7 +133,7 @@ class Themes { * @see CRM_Utils_Hook::themes */ public function getAvailable() { - $result = array(); + $result = []; foreach ($this->getAll() as $key => $theme) { if ($key{0} !== '_') { $result[$key] = $theme['title']; @@ -164,14 +164,14 @@ class Themes { public function resolveUrls($active, $cssExt, $cssFile) { $all = $this->getAll(); if (!isset($all[$active])) { - return array(); + return []; } $cssId = $this->cssId($cssExt, $cssFile); foreach ($all[$active]['search_order'] as $themeKey) { if (isset($all[$themeKey]['excludes']) && in_array($cssId, $all[$themeKey]['excludes'])) { - $result = array(); + $result = []; } else { $result = Civi\Core\Resolver::singleton()