@@ -262,7 +262,6 @@ discard block |
||
| 262 | 262 | /** |
| 263 | 263 | * Populates links and relationships keys. |
| 264 | 264 | * |
| 265 | - * @param array $data |
|
| 266 | 265 | * @param object $object |
| 267 | 266 | * @param string|null $format |
| 268 | 267 | * @param array $context |
@@ -362,7 +361,7 @@ discard block |
||
| 362 | 361 | * @param string|null $format |
| 363 | 362 | * @param array $context |
| 364 | 363 | * |
| 365 | - * @return bool|string |
|
| 364 | + * @return string|false |
|
| 366 | 365 | */ |
| 367 | 366 | private function getCacheKey(string $format = null, array $context) |
| 368 | 367 | { |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\Serializer; |
| 15 | 15 | |
@@ -238,8 +238,7 @@ discard block |
||
| 238 | 238 | null !== $className |
| 239 | 239 | && $this->resourceClassResolver->isResourceClass($className) |
| 240 | 240 | ) |
| 241 | - ? $this->resourceMetadataFactory->create($className)->getShortName() : |
|
| 242 | - '' |
|
| 241 | + ? $this->resourceMetadataFactory->create($className)->getShortName() : '' |
|
| 243 | 242 | ); |
| 244 | 243 | } |
| 245 | 244 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\Serializer\NameConverter; |
| 15 | 15 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function denormalize($propertyName) |
| 75 | 75 | { |
| 76 | - $camelCasedName = preg_replace_callback('/(^|-|\.)+(.)/', function ($match) { |
|
| 76 | + $camelCasedName = preg_replace_callback('/(^|-|\.)+(.)/', function($match) { |
|
| 77 | 77 | return ('.' === $match[1] ? '-' : '').strtoupper($match[2]); |
| 78 | 78 | }, $propertyName); |
| 79 | 79 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\Serializer; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\Serializer; |
| 15 | 15 | |
@@ -193,8 +193,7 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | if (is_array($data) || $data instanceof \Countable) { |
| 195 | 195 | $returnDataArray['meta']['totalItems'] = $data instanceof PaginatorInterface ? |
| 196 | - (int) $data->getTotalItems() : |
|
| 197 | - count($data); |
|
| 196 | + (int) $data->getTotalItems() : count($data); |
|
| 198 | 197 | } |
| 199 | 198 | |
| 200 | 199 | if ($isPaginator) { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\EventListener; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\Serializer; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\Serializer; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\EventListener; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\JsonApi\EventListener; |
| 15 | 15 | |