Completed
Push — feature/EVO-5751-add-textIndex... ( ca7077...5acf27 )
by
unknown
03:04
created
src/Graviton/JsonSchemaBundle/Command/AbstractValidateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Validator/Validator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,6 +81,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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 \stdClass $schema the schema
65 65
      *
66 66
      * @return ValidationExceptionError[] errors
67 67
      */
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Tests/Validator/ValidatorTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
             ->method('getErrors')
92 92
             ->willReturn($errors);
93 93
         $validator->expects($this->once())
94
-                  ->method('reset')
95
-                  ->willReturn(true);
94
+                    ->method('reset')
95
+                    ->willReturn(true);
96 96
         $validator->expects($this->once())
97 97
             ->method('check')
98 98
             ->with(json_decode($json), $schema);
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
             ->with(json_decode($json), $schema)
121 121
             ->willReturn(true);
122 122
         $validator->expects($this->once())
123
-                  ->method('isValid')
124
-                  ->willReturn(true);
123
+                    ->method('isValid')
124
+                    ->willReturn(true);
125 125
         $validator->expects($this->never())
126 126
             ->method('getErrors');
127 127
 
Please login to merge, or discard this patch.