Completed
Pull Request — master (#73)
by Sébastien
10:37
created
src/Json/JsonSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
 
20 20
     public function validate(Json $json, Validator $validator, SchemaStorage $schemaStorage)
21 21
     {
22
-        $schema = $schemaStorage->resolveRef('file://' . realpath($this->filename));
22
+        $schema = $schemaStorage->resolveRef('file://'.realpath($this->filename));
23 23
 
24 24
         $validator->validate($json->getRawContent(), $schema);
25 25
 
26 26
         if (!$validator->isValid()) {
27
-            $msg = "JSON does not validate. Violations:" . PHP_EOL;
27
+            $msg = "JSON does not validate. Violations:".PHP_EOL;
28 28
             foreach ($validator->getErrors() as $error) {
29
-                $msg .= sprintf("  - [%s] %s" . PHP_EOL, $error['property'], $error['message']);
29
+                $msg .= sprintf("  - [%s] %s".PHP_EOL, $error['property'], $error['message']);
30 30
             }
31 31
             throw new \Exception($msg);
32 32
         }
Please login to merge, or discard this patch.