Completed
Pull Request — develop (#10)
by Narcotic
05:27 queued 03:02
created
src/Graviton/JsonSchemaBundle/Command/AbstractValidateCommand.php 2 patches
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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * AbstractValidateCommand class file
4
- */
3
+     * AbstractValidateCommand class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle\Command;
7 7
 
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Command/ValidateDirectoryCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * ValidateDirectoryCommand class file
4
- */
3
+     * ValidateDirectoryCommand class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle\Command;
7 7
 
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Command/ValidateFileCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * ValidateFileCommand class file
4
- */
3
+     * ValidateFileCommand class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle\Command;
7 7
 
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/GravitonJsonSchemaBundle.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * GravitonJsonSchemaBundle class file
4
- */
3
+     * GravitonJsonSchemaBundle class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle;
7 7
 
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Schema/SchemaFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * SchemaFactory class file
4
- */
3
+     * SchemaFactory class file
4
+     */
5 5
 namespace Graviton\JsonSchemaBundle\Schema;
6 6
 
7 7
 use JsonSchema\RefResolver;
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Tests/Schema/SchemaFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * SchemaFactoryTest class file
4
- */
3
+     * SchemaFactoryTest class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle\Tests\Schema;
7 7
 
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Tests/Validator/ValidatorTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * ValidatorTest class file
4
- */
3
+     * ValidatorTest class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle\Tests\Validator;
7 7
 
Please login to merge, or discard this patch.
src/Graviton/JsonSchemaBundle/Validator/InvalidJsonException.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * InvalidJsonException class file
4
- */
3
+     * InvalidJsonException class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle\Validator;
7 7
 
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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Validator class file
4
- */
3
+     * Validator class file
4
+     */
5 5
 
6 6
 namespace Graviton\JsonSchemaBundle\Validator;
7 7
 
Please login to merge, or discard this patch.