@@ -81,14 +81,14 @@ |
||
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 |