@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | ContainerInterface $container, |
| 184 | 184 | ServerRequestInterface $request |
| 185 | 185 | ): ResponseInterface { |
| 186 | - $apiHandler = function (CrudInterface $crud) use ($index, $relationshipName) { |
|
| 186 | + $apiHandler = function(CrudInterface $crud) use ($index, $relationshipName) { |
|
| 187 | 187 | return $crud->readRelationship($index, $relationshipName); |
| 188 | 188 | }; |
| 189 | 189 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | ContainerInterface $container, |
| 208 | 208 | ServerRequestInterface $request |
| 209 | 209 | ): ResponseInterface { |
| 210 | - $apiHandler = function (CrudInterface $crud) use ($index, $relationshipName) { |
|
| 210 | + $apiHandler = function(CrudInterface $crud) use ($index, $relationshipName) { |
|
| 211 | 211 | return $crud->readRelationship($index, $relationshipName); |
| 212 | 212 | }; |
| 213 | 213 | |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | */ |
| 312 | 312 | protected static function readJsonFromRequest(ContainerInterface $container, ServerRequestInterface $request): array |
| 313 | 313 | { |
| 314 | - $body = (string)$request->getBody(); |
|
| 314 | + $body = (string) $request->getBody(); |
|
| 315 | 315 | if (empty($body) === true || ($json = json_decode($body, true)) === null) { |
| 316 | 316 | /** @var FactoryInterface $factory */ |
| 317 | 317 | $factory = $container->get(FactoryInterface::class); |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | { |
| 465 | 465 | assert( |
| 466 | 466 | empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false, |
| 467 | - 'Validation rules set should be defined for class ' . static::class . '.' |
|
| 467 | + 'Validation rules set should be defined for class '.static::class.'.' |
|
| 468 | 468 | ); |
| 469 | 469 | |
| 470 | 470 | return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS); |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | { |
| 483 | 483 | assert( |
| 484 | 484 | empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false, |
| 485 | - 'Validation rules set should be defined for class ' . static::class . '.' |
|
| 485 | + 'Validation rules set should be defined for class '.static::class.'.' |
|
| 486 | 486 | ); |
| 487 | 487 | |
| 488 | 488 | return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS); |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | ContainerInterface $container, |
| 684 | 684 | ServerRequestInterface $request |
| 685 | 685 | ): array { |
| 686 | - $jsonData = static::normalizeIndexValueOnUpdate( |
|
| 686 | + $jsonData = static::normalizeIndexValueOnUpdate( |
|
| 687 | 687 | $routeParams, |
| 688 | 688 | $container, |
| 689 | 689 | static::readJsonFromRequest($container, $request) |