@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | $hasErrors = array_reduce( |
60 | 60 | $this->loadDefinitions($input), |
61 | - function ($hasErrors, SplFileInfo $fileInfo) use ($output) { |
|
61 | + function($hasErrors, SplFileInfo $fileInfo) use ($output) { |
|
62 | 62 | $errors = $this->validateJsonDefinitionFile($fileInfo->getContents()); |
63 | 63 | if (!empty($errors)) { |
64 | 64 | $hasErrors = true; |
@@ -81,6 +81,6 @@ |
||
81 | 81 | JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', |
82 | 82 | JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', |
83 | 83 | ]; |
84 | - return isset($errorMap[$errorNo]) ? $errorMap[$errorNo]: 'Unknown error'; |
|
84 | + return isset($errorMap[$errorNo]) ? $errorMap[$errorNo] : 'Unknown error'; |
|
85 | 85 | } |
86 | 86 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * validate a json structure with a schema |
62 | 62 | * |
63 | 63 | * @param object $json the json |
64 | - * @param object $schema the schema |
|
64 | + * @param string $schema the schema |
|
65 | 65 | * |
66 | 66 | * @return ValidationExceptionError[] errors |
67 | 67 | */ |
@@ -37,9 +37,7 @@ |
||
37 | 37 | * checks the input |
38 | 38 | * |
39 | 39 | * @param mixed $element element |
40 | - * @param null $schema schema |
|
41 | 40 | * @param JsonPointer $path path |
42 | - * @param null $i iterator value |
|
43 | 41 | * |
44 | 42 | * @return void |
45 | 43 | */ |