@@ -44,8 +44,7 @@ |
||
44 | 44 | // the same identifier will not be found twice in the cache, which will result in a duplicate key sql error. |
45 | 45 | if (isset($this->translations[$group][$identifier])) { |
46 | 46 | return $this->translations[$group][$identifier]; |
47 | - } |
|
48 | - else { |
|
47 | + } else { |
|
49 | 48 | throw new TranslationNotInCacheException("The translation identifier '".$identifier."' could not be found in Cache"); |
50 | 49 | } |
51 | 50 | } |
@@ -318,7 +318,9 @@ |
||
318 | 318 | $locale = $found_locales[0]; |
319 | 319 | } |
320 | 320 | |
321 | - if ($message !== '') $this->log($message, 'warning'); |
|
321 | + if ($message !== '') { |
|
322 | + $this->log($message, 'warning'); |
|
323 | + } |
|
322 | 324 | |
323 | 325 | return $locale; |
324 | 326 | } |