Passed
Branch master (b3bcb6)
by Alexander
02:46
created
src/Handler/CacheJSONHandler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Translator.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.