* @see CRM_Utils_Hook::themes
*/
public function getAvailable() {
- $result = array();
+ $result = [];
foreach ($this->getAll() as $key => $theme) {
- if ($key{0} !== '_') {
+ if ($key[0] !== '_') {
$result[$key] = $theme['title'];
}
}
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()