@@ -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\Hal\Serializer; |
15 | 15 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $data['_links']['item'][] = $item['_links']['self']; |
106 | 106 | } |
107 | 107 | |
108 | - if (is_array($object) || $object instanceof PaginatorInterface|| $object instanceof \Countable) { |
|
108 | + if (is_array($object) || $object instanceof PaginatorInterface || $object instanceof \Countable) { |
|
109 | 109 | $data['totalItems'] = $object instanceof PaginatorInterface ? (int) $object->getTotalItems() : count($object); |
110 | 110 | } |
111 | 111 |