Test Setup Failed
Branch master (4c62c0)
by Bruce Pinheiro de
05:02
created
src/Context.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,14 +81,14 @@
 block discarded – undo
81 81
      */
82 82
     public static function loadContextFromFile(string $filePath): ContextInterface
83 83
     {
84
-        if(!file_exists($filePath)){
85
-            throw new Exception\FileNotFoundException('Context file not found: '.$filePath, 404, null, $filePath);
84
+        if (!file_exists($filePath)) {
85
+            throw new Exception\FileNotFoundException('Context file not found: ' . $filePath, 404, null, $filePath);
86 86
         }
87 87
 
88 88
         $contents = file_get_contents($filePath);
89 89
         $context_array = json_decode($contents, true);
90 90
 
91
-        if($context_array === null){
91
+        if ($context_array === null) {
92 92
             throw new Exception\MalformedJsonException('JSON sintax error.');
93 93
         }
94 94
 
Please login to merge, or discard this patch.