X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FResources%2FStrings.php;h=451d02dda28a44ddfe82fd95c28945fbfb944ecb;hb=2e47b4f361f2fe657d0cecb97311b1c8248ff051;hp=f8a9175315c52cfc1876b97b64a8b3ede6ce3bac;hpb=c7b6016eb318e6feb668af52cca2e582a8ed571c;p=civicrm-core.git diff --git a/CRM/Core/Resources/Strings.php b/CRM/Core/Resources/Strings.php index f8a9175315..451d02dda2 100644 --- a/CRM/Core/Resources/Strings.php +++ b/CRM/Core/Resources/Strings.php @@ -67,16 +67,17 @@ class CRM_Core_Resources_Strings { * List of translatable strings. */ public function get($bucket, $file, $format) { - $stringsByFile = $this->cache->get($bucket); // array($file => array(...strings...)) + // array($file => array(...strings...)) + $stringsByFile = $this->cache->get($bucket); if (!$stringsByFile) { - $stringsByFile = array(); + $stringsByFile = []; } if (!isset($stringsByFile[$file])) { if ($file && is_readable($file)) { $stringsByFile[$file] = $this->extract($file, $format); } else { - $stringsByFile[$file] = array(); + $stringsByFile[$file] = []; } $this->cache->set($bucket, $stringsByFile); }