* 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);
}