@@ -311,8 +311,7 @@ discard block |
||
| 311 | 311 | if ($locale == null){ |
| 312 | 312 | if (session()->get('locale') != '') { |
| 313 | 313 | $locale = session()->get('locale'); |
| 314 | - } |
|
| 315 | - else { |
|
| 314 | + } else { |
|
| 316 | 315 | return $default_locale; |
| 317 | 316 | } |
| 318 | 317 | } |
@@ -343,7 +342,9 @@ discard block |
||
| 343 | 342 | } |
| 344 | 343 | } |
| 345 | 344 | |
| 346 | - if ($message !== '') $this->log($message, 'warning'); |
|
| 345 | + if ($message !== '') { |
|
| 346 | + $this->log($message, 'warning'); |
|
| 347 | + } |
|
| 347 | 348 | |
| 348 | 349 | return $locale; |
| 349 | 350 | } |
@@ -63,8 +63,7 @@ |
||
| 63 | 63 | // So not finding the same identifier twice in the cache, will result in an error. |
| 64 | 64 | if (isset($this->translations[$group][$identifier])) { |
| 65 | 65 | return $this->translations[$group][$identifier]; |
| 66 | - } |
|
| 67 | - else { |
|
| 66 | + } else { |
|
| 68 | 67 | throw new TranslationNotInCacheException("The translation identifier '".$identifier."' could not be found in Cache"); |
| 69 | 68 | } |
| 70 | 69 | } |