@@ -181,7 +181,7 @@ |
||
181 | 181 | ): PaginatedDataInterface; |
182 | 182 | |
183 | 183 | /** |
184 | - * @param int|string $index |
|
184 | + * @param string $index |
|
185 | 185 | * @param string $name |
186 | 186 | * @param iterable|null $relationshipFilters |
187 | 187 | * @param iterable|null $relationshipSorts |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | ContainerInterface $container, |
140 | 140 | ServerRequestInterface $request |
141 | 141 | ): ResponseInterface { |
142 | - $jsonData = static::normalizeIndexValueOnUpdate( |
|
142 | + $jsonData = static::normalizeIndexValueOnUpdate( |
|
143 | 143 | $routeParams, |
144 | 144 | $container, |
145 | 145 | static::readJsonFromRequest($container, $request) |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | */ |
247 | 247 | protected static function readJsonFromRequest(ContainerInterface $container, ServerRequestInterface $request): array |
248 | 248 | { |
249 | - $body = (string)$request->getBody(); |
|
249 | + $body = (string) $request->getBody(); |
|
250 | 250 | if (empty($body) === true || ($json = json_decode($body, true)) === null) { |
251 | 251 | /** @var FactoryInterface $factory */ |
252 | 252 | $factory = $container->get(FactoryInterface::class); |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | { |
377 | 377 | assert( |
378 | 378 | empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false, |
379 | - 'Validation rules set should be defined for class ' . static::class . '.' |
|
379 | + 'Validation rules set should be defined for class '.static::class.'.' |
|
380 | 380 | ); |
381 | 381 | |
382 | 382 | return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS); |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | { |
392 | 392 | assert( |
393 | 393 | empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false, |
394 | - 'Validation rules set should be defined for class ' . static::class . '.' |
|
394 | + 'Validation rules set should be defined for class '.static::class.'.' |
|
395 | 395 | ); |
396 | 396 | |
397 | 397 | return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | public function withAllowedFilterFields(array $fields): QueryParserInterface |
92 | 92 | { |
93 | 93 | // debug check all fields are strings |
94 | - assert((function () use ($fields) { |
|
94 | + assert((function() use ($fields) { |
|
95 | 95 | $allAreStrings = !empty($fields); |
96 | 96 | foreach ($fields as $field) { |
97 | 97 | $allAreStrings = $allAreStrings === true && is_string($field) === true && empty($field) === false; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | public function withAllowedSortFields(array $fields): QueryParserInterface |
132 | 132 | { |
133 | 133 | // debug check all fields are strings |
134 | - assert((function () use ($fields) { |
|
134 | + assert((function() use ($fields) { |
|
135 | 135 | $allAreStrings = !empty($fields); |
136 | 136 | foreach ($fields as $field) { |
137 | 137 | $allAreStrings = $allAreStrings === true && is_string($field) === true && empty($field) === false; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | public function withAllowedIncludePaths(array $paths): QueryParserInterface |
172 | 172 | { |
173 | 173 | // debug check all fields are strings |
174 | - assert((function () use ($paths) { |
|
174 | + assert((function() use ($paths) { |
|
175 | 175 | $allAreStrings = !empty($paths); |
176 | 176 | foreach ($paths as $path) { |
177 | 177 | $allAreStrings = $allAreStrings === true && is_string($path) === true && empty($path) === false; |