@@ -201,7 +201,7 @@ |
||
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( |
@@ -22,14 +22,14 @@ |
||
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 | } |