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