Completed
Pull Request — master (#51)
by Timothée
02:59
created
src/Json/JsonContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
             ));
202 202
         }
203 203
 
204
-        $filename = $this->jsonSchemaBaseUrl . '/' . $filename;
204
+        $filename = $this->jsonSchemaBaseUrl.'/'.$filename;
205 205
 
206 206
         if (false === is_file($filename)) {
207 207
             throw new \RuntimeException(sprintf(
Please login to merge, or discard this patch.
src/Json/JsonSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@
 block discarded – undo
22 22
     public function validate(Json $json, Validator $validator)
23 23
     {
24 24
         $refResolver = new RefResolver(new UriRetriever, new UriResolver);
25
-        $schema = $refResolver->resolve('file://' . realpath($this->filename));
25
+        $schema = $refResolver->resolve('file://'.realpath($this->filename));
26 26
 
27 27
         $validator->check($json->getRawContent(), $schema);
28 28
 
29 29
         if (!$validator->isValid()) {
30
-            $msg = "JSON does not validate. Violations:" . PHP_EOL;
30
+            $msg = "JSON does not validate. Violations:".PHP_EOL;
31 31
             foreach ($validator->getErrors() as $error) {
32
-                $msg .= sprintf("  - [%s] %s" . PHP_EOL, $error['property'], $error['message']);
32
+                $msg .= sprintf("  - [%s] %s".PHP_EOL, $error['property'], $error['message']);
33 33
             }
34 34
             throw new \Exception($msg);
35 35
         }
Please login to merge, or discard this patch.