@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Limoncello\Flute\Validation\Rules; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Limoncello\Flute\Validation\JsonApi\Rules; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Limoncello\Flute\Validation\JsonApi\Execution; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | /** |
@@ -1,4 +1,4 @@ discard block |
||
| 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 |
||
| 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; |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Limoncello\Flute\Validation\JsonApi; |
| 4 | 4 | |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | ) { |
| 190 | 190 | assert( |
| 191 | 191 | in_array(JsonApiQueryRulesSerializerInterface::class, class_implements($serializerClass)), |
| 192 | - "`$serializerClass` should implement interface `" . JsonApiQueryRulesSerializerInterface::class . '`.' |
|
| 192 | + "`$serializerClass` should implement interface `".JsonApiQueryRulesSerializerInterface::class.'`.' |
|
| 193 | 193 | ); |
| 194 | 194 | |
| 195 | 195 | $parameters = []; |
@@ -691,7 +691,7 @@ discard block |
||
| 691 | 691 | { |
| 692 | 692 | // no validation rule means we should accept any input value |
| 693 | 693 | if ($ruleIndexes === null) { |
| 694 | - return is_numeric($value) === true ? (int)$value : 0; |
|
| 694 | + return is_numeric($value) === true ? (int) $value : 0; |
|
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | $ruleIndex = $this->serializerClass::readRuleMainIndex($ruleIndexes); |
@@ -702,7 +702,7 @@ discard block |
||
| 702 | 702 | |
| 703 | 703 | $validatedValue = $this->readSingleCapturedValue(); |
| 704 | 704 | |
| 705 | - return (int)$validatedValue; |
|
| 705 | + return (int) $validatedValue; |
|
| 706 | 706 | } |
| 707 | 707 | |
| 708 | 708 | /** |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Limoncello\Flute\Validation\Form\Execution; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Limoncello\Flute\Validation\Form; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types = 1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Limoncello\Flute\Validation\Serialize; |
| 4 | 4 | |