@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute; |
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\Types; |
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\Encoder; |
4 | 4 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | |
127 | 127 | parse_str($this->getOriginalUri()->getQuery(), $queryParams); |
128 | 128 | |
129 | - return function ($offset) use ($pageSize, $queryParams) { |
|
129 | + return function($offset) use ($pageSize, $queryParams) { |
|
130 | 130 | $paramsWithPaging = array_merge($queryParams, [ |
131 | 131 | BaseQueryParserInterface::PARAM_PAGE => [ |
132 | 132 | JsonApiQueryParserInterface::PARAM_PAGING_OFFSET => $offset, |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | ], |
135 | 135 | ]); |
136 | 136 | $newUri = $this->getOriginalUri()->withQuery(http_build_query($paramsWithPaging)); |
137 | - $fullUrl = (string)$newUri; |
|
137 | + $fullUrl = (string) $newUri; |
|
138 | 138 | $link = $this->getFactory()->createLink(false, $fullUrl, false); |
139 | 139 | |
140 | 140 | return $link; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Models; |
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\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; |