Passed
Branch master (988f4e)
by Alexander
05:45
created
src/Translator.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -311,8 +311,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Handler/CacheJSONHandler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.