@@ -208,12 +208,12 @@ |
||
208 | 208 | return [static::DATA => $data->getData()]; |
209 | 209 | } |
210 | 210 | |
211 | - $buildUrl = function ($offset) use ($data, $uri) { |
|
211 | + $buildUrl = function($offset) use ($data, $uri) { |
|
212 | 212 | $paramsWithPaging = [ |
213 | 213 | PaginationStrategyInterface::PARAM_PAGING_SKIP => $offset, |
214 | 214 | PaginationStrategyInterface::PARAM_PAGING_SIZE => $data->getLimit(), |
215 | 215 | ]; |
216 | - $fullUrl = $uri . '?' . http_build_query($paramsWithPaging); |
|
216 | + $fullUrl = $uri.'?'.http_build_query($paramsWithPaging); |
|
217 | 217 | |
218 | 218 | return $fullUrl; |
219 | 219 | }; |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ): ResponseInterface { |
118 | 118 | $schemeParams = static::parseQueryParameters($container, $request->getQueryParams()); |
119 | 119 | |
120 | - list ($filters, , $includes) = |
|
120 | + list ($filters,, $includes) = |
|
121 | 121 | static::mapSchemeToModelParameters($container, $schemeParams, static::SCHEMA_CLASS); |
122 | 122 | |
123 | 123 | $index = $routeParams[static::ROUTE_KEY_INDEX]; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | ContainerInterface $container, |
141 | 141 | ServerRequestInterface $request |
142 | 142 | ): ResponseInterface { |
143 | - $jsonData = static::normalizeIndexValueOnUpdate( |
|
143 | + $jsonData = static::normalizeIndexValueOnUpdate( |
|
144 | 144 | $routeParams, |
145 | 145 | $container, |
146 | 146 | static::readJsonFromRequest($container, $request) |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | protected static function readJsonFromRequest(ContainerInterface $container, ServerRequestInterface $request): array |
269 | 269 | { |
270 | - $body = (string)$request->getBody(); |
|
270 | + $body = (string) $request->getBody(); |
|
271 | 271 | if (empty($body) === true || ($json = json_decode($body, true)) === null) { |
272 | 272 | /** @var FactoryInterface $factory */ |
273 | 273 | $factory = $container->get(FactoryInterface::class); |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | { |
398 | 398 | assert( |
399 | 399 | empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false, |
400 | - 'Validation rules set should be defined for class ' . static::class . '.' |
|
400 | + 'Validation rules set should be defined for class '.static::class.'.' |
|
401 | 401 | ); |
402 | 402 | |
403 | 403 | return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS); |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | { |
413 | 413 | assert( |
414 | 414 | empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false, |
415 | - 'Validation rules set should be defined for class ' . static::class . '.' |
|
415 | + 'Validation rules set should be defined for class '.static::class.'.' |
|
416 | 416 | ); |
417 | 417 | |
418 | 418 | return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS); |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | /** @var JsonSchemesInterface $jsonSchemes */ |
541 | 541 | $jsonSchemes = $container->get(JsonSchemesInterface::class); |
542 | 542 | $targetSchema = $jsonSchemes->getRelationshipSchema(static::SCHEMA_CLASS, $relationshipName); |
543 | - list ($filters, $sorts, , $paging) = |
|
543 | + list ($filters, $sorts,, $paging) = |
|
544 | 544 | static::mapSchemeToModelParameters($container, $encodingParams, get_class($targetSchema)); |
545 | 545 | |
546 | 546 | /** @var SchemaInterface $schemaClass */ |
@@ -108,8 +108,8 @@ |
||
108 | 108 | ); |
109 | 109 | assert(empty($validatorsFileMask) === false, "Invalid Validators file mask `$validatorsFileMask`."); |
110 | 110 | |
111 | - $schemesPath = $schemesFolder . DIRECTORY_SEPARATOR . $schemesFileMask; |
|
112 | - $validatorsPath = $validatorsFolder . DIRECTORY_SEPARATOR . $validatorsFileMask; |
|
111 | + $schemesPath = $schemesFolder.DIRECTORY_SEPARATOR.$schemesFileMask; |
|
112 | + $validatorsPath = $validatorsFolder.DIRECTORY_SEPARATOR.$validatorsFileMask; |
|
113 | 113 | |
114 | 114 | $requireUniqueTypes = $defaults[static::KEY_SCHEMES_REQUIRE_UNIQUE_TYPES] ?? true; |
115 | 115 |