Completed
Pull Request — master (#73)
by Sébastien
01:58
created
src/Json/JsonSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@
 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
         $data = $json->getRawContent();
24 24
 
25 25
         $validator->validate($data, $schema);
26 26
 
27 27
         if (!$validator->isValid()) {
28
-            $msg = "JSON does not validate. Violations:" . PHP_EOL;
28
+            $msg = "JSON does not validate. Violations:".PHP_EOL;
29 29
             foreach ($validator->getErrors() as $error) {
30
-                $msg .= sprintf("  - [%s] %s" . PHP_EOL, $error['property'], $error['message']);
30
+                $msg .= sprintf("  - [%s] %s".PHP_EOL, $error['property'], $error['message']);
31 31
             }
32 32
             throw new \Exception($msg);
33 33
         }
Please login to merge, or discard this patch.