@@ -111,10 +111,10 @@ |
||
111 | 111 | ); |
112 | 112 | assert(empty($jsonQueryValFileMask) === false, "Invalid Query Validators file mask `$jsonQueryValFileMask`."); |
113 | 113 | |
114 | - $schemesPath = $schemesFolder . DIRECTORY_SEPARATOR . $schemesFileMask; |
|
115 | - $jsonDataValPath = $jsonDataValFolder . DIRECTORY_SEPARATOR . $jsonDataValFileMask; |
|
116 | - $formsValidatorsPath = $formsValFolder . DIRECTORY_SEPARATOR . $formsValFileMask; |
|
117 | - $jsonQueryValPath = $jsonQueryValFolder . DIRECTORY_SEPARATOR . $jsonQueryValFileMask; |
|
114 | + $schemesPath = $schemesFolder.DIRECTORY_SEPARATOR.$schemesFileMask; |
|
115 | + $jsonDataValPath = $jsonDataValFolder.DIRECTORY_SEPARATOR.$jsonDataValFileMask; |
|
116 | + $formsValidatorsPath = $formsValFolder.DIRECTORY_SEPARATOR.$formsValFileMask; |
|
117 | + $jsonQueryValPath = $jsonQueryValFolder.DIRECTORY_SEPARATOR.$jsonQueryValFileMask; |
|
118 | 118 | |
119 | 119 | $requireUniqueTypes = $defaults[static::KEY_SCHEMAS_REQUIRE_UNIQUE_TYPES] ?? true; |
120 | 120 |
@@ -212,12 +212,12 @@ |
||
212 | 212 | return [static::DATA => $data->getData()]; |
213 | 213 | } |
214 | 214 | |
215 | - $buildUrl = function ($offset) use ($data, $uri) { |
|
215 | + $buildUrl = function($offset) use ($data, $uri) { |
|
216 | 216 | $paramsWithPaging = [ |
217 | 217 | JsonApiQueryValidatingParserInterface::PARAM_PAGING_OFFSET => $offset, |
218 | 218 | JsonApiQueryValidatingParserInterface::PARAM_PAGING_LIMIT => $data->getLimit(), |
219 | 219 | ]; |
220 | - $fullUrl = $uri . '?' . http_build_query($paramsWithPaging); |
|
220 | + $fullUrl = $uri.'?'.http_build_query($paramsWithPaging); |
|
221 | 221 | |
222 | 222 | return $fullUrl; |
223 | 223 | }; |
@@ -269,7 +269,7 @@ |
||
269 | 269 | * @param FactoryInterface $errorFactory |
270 | 270 | * @param FormatterFactoryInterface $formatterFactory |
271 | 271 | * |
272 | - * @return ResponseInterface |
|
272 | + * @return string |
|
273 | 273 | */ |
274 | 274 | protected static function defaultCreate( |
275 | 275 | string $requestBody, |
@@ -792,7 +792,7 @@ discard block |
||
792 | 792 | */ |
793 | 793 | private static function assertClassValueDefined(?string $value): void |
794 | 794 | { |
795 | - assert(empty($value) === false, 'Value should be defined in `' . static::class . '`.'); |
|
795 | + assert(empty($value) === false, 'Value should be defined in `'.static::class.'`.'); |
|
796 | 796 | } |
797 | 797 | |
798 | 798 | /** |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | { |
806 | 806 | assert( |
807 | 807 | array_key_exists($interface, class_implements($class)) === true, |
808 | - "Class `$class` should implement `" . $interface . '` interface.' |
|
808 | + "Class `$class` should implement `".$interface.'` interface.' |
|
809 | 809 | ); |
810 | 810 | } |
811 | 811 | } |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | static::assertClassValueDefined(static::SCHEMA_CLASS); |
209 | 209 | |
210 | 210 | $api = static::defaultCreateApi($container, static::API_CLASS); |
211 | - $handler = function () use ($api, $index, $modelRelName) { |
|
211 | + $handler = function() use ($api, $index, $modelRelName) { |
|
212 | 212 | return $api->readRelationship($index, $modelRelName); |
213 | 213 | }; |
214 | 214 | |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | static::assertClassValueDefined(static::SCHEMA_CLASS); |
249 | 249 | |
250 | 250 | $api = static::defaultCreateApi($container, static::API_CLASS); |
251 | - $handler = function () use ($api, $index, $modelRelName) { |
|
251 | + $handler = function() use ($api, $index, $modelRelName) { |
|
252 | 252 | return $api->readRelationship($index, $modelRelName); |
253 | 253 | }; |
254 | 254 |