@@ -19,15 +19,15 @@ |
||
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 | } |