Completed
Push — develop ( c1ef57...2d3e63 )
by Neomerx
36:35 queued 15:21
created
src/Validation/JsonApi/Rules/ToOneRelationshipTypeCheckerRule.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\JsonApi\Rules;
4 4
 
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
         assert(is_scalar($index) === true && is_scalar($type) === true);
65 65
         $expectedType = $context->getProperties()->getProperty(static::PROPERTY_RESOURCE_TYPE);
66 66
         $reply        = $type === $expectedType ?
67
-            static::createSuccessReply($index) :
68
-            static::createErrorReply($context, $type, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
67
+            static::createSuccessReply($index) : static::createErrorReply($context, $type, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
69 68
 
70 69
         return $reply;
71 70
     }
Please login to merge, or discard this patch.
src/Validation/JsonApi/Rules/IsReadableViaApiRule.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\JsonApi\Rules;
4 4
 
@@ -74,11 +74,10 @@  discard block
 block discarded – undo
74 74
         /** @var CrudInterface $api */
75 75
         $api = $apiFactory->createApi($apiClass);
76 76
 
77
-        $data   = $api->withIndexFilter((string)$value)->indexIdentities();
77
+        $data   = $api->withIndexFilter((string) $value)->indexIdentities();
78 78
         $result = !empty($data);
79 79
 
80 80
         return $result === true ?
81
-            static::createSuccessReply($value) :
82
-            static::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
81
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
83 82
     }
84 83
 }
Please login to merge, or discard this patch.
src/Validation/JsonApi/Rules/ExistInDbTableSingleWithDoctrineRule.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\JsonApi\Rules;
4 4
 
@@ -84,8 +84,7 @@  discard block
 block discarded – undo
84 84
         }
85 85
 
86 86
         $reply = $count > 0 ?
87
-            static::createSuccessReply($value) :
88
-            static::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
87
+            static::createSuccessReply($value) : static::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
89 88
 
90 89
         return $reply;
91 90
     }
Please login to merge, or discard this patch.
src/Validation/JsonApi/Execution/JsonApiDataRulesSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\JsonApi\Execution;
4 4
 
Please login to merge, or discard this patch.
src/Validation/JsonApi/Execution/JsonApiErrorCollection.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\JsonApi\Execution;
4 4
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     ): void {
53 53
         $title  = $this->getInvalidValueMessage();
54 54
         $detail = $this->getValidationMessage($error);
55
-        $this->addDataIdError($title, $detail, (string)$errorStatus);
55
+        $this->addDataIdError($title, $detail, (string) $errorStatus);
56 56
     }
57 57
 
58 58
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     ): void {
65 65
         $title  = $this->getInvalidValueMessage();
66 66
         $detail = $this->getValidationMessage($error);
67
-        $this->addDataTypeError($title, $detail, (string)$errorStatus);
67
+        $this->addDataTypeError($title, $detail, (string) $errorStatus);
68 68
     }
69 69
 
70 70
     /**
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     ): void {
77 77
         $title  = $this->getInvalidValueMessage();
78 78
         $detail = $this->getValidationMessage($error);
79
-        $this->addDataAttributeError($error->getParameterName(), $title, $detail, (string)$errorStatus);
79
+        $this->addDataAttributeError($error->getParameterName(), $title, $detail, (string) $errorStatus);
80 80
     }
81 81
 
82 82
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     ): void {
89 89
         $title  = $this->getInvalidValueMessage();
90 90
         $detail = $this->getValidationMessage($error);
91
-        $this->addRelationshipError($error->getParameterName(), $title, $detail, (string)$errorStatus);
91
+        $this->addRelationshipError($error->getParameterName(), $title, $detail, (string) $errorStatus);
92 92
     }
93 93
 
94 94
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     ): void {
102 102
         $title  = $this->getInvalidValueMessage();
103 103
         $detail = $this->getValidationMessage($error);
104
-        $this->addQueryParameterError($paramName, $title, $detail, (string)$errorStatus);
104
+        $this->addQueryParameterError($paramName, $title, $detail, (string) $errorStatus);
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
src/Validation/JsonApi/Execution/JsonApiParserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\JsonApi\Execution;
4 4
 
Please login to merge, or discard this patch.
src/Validation/JsonApi/Execution/JsonApiQueryRulesSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\JsonApi\Execution;
4 4
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     private $serializedRules = [];
38 38
 
39 39
     /** Index key */
40
-    protected const IDENTITY_RULE= 0;
40
+    protected const IDENTITY_RULE = 0;
41 41
 
42 42
     /** Index key */
43 43
     protected const FILTER_RULES = self::IDENTITY_RULE + 1;
Please login to merge, or discard this patch.
src/Validation/Form/Execution/FormRulesSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\Form\Execution;
4 4
 
Please login to merge, or discard this patch.
src/Validation/Form/Execution/FormValidatorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Validation\Form\Execution;
4 4
 
Please login to merge, or discard this patch.