@@ -79,7 +79,7 @@ |
||
| 79 | 79 | ] |
| 80 | 80 | ]; |
| 81 | 81 | if ($collectionEntity->getPerPage() !== null && ($request = $this->requestStack->getCurrentRequest())) { |
| 82 | - $request->attributes->set('_api_pagination', [ 'itemsPerPage' => $collectionEntity->getPerPage() ]); |
|
| 82 | + $request->attributes->set('_api_pagination', ['itemsPerPage' => $collectionEntity->getPerPage()]); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** @var Paginator $collection */ |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | private function supportsEntity(ClassMetadata $targetEntity): bool |
| 34 | 34 | { |
| 35 | 35 | if ($targetEntity->subClasses) { |
| 36 | - $highestSubclass = $targetEntity->subClasses[max(\count($targetEntity->subClasses)-1, 0)]; |
|
| 36 | + $highestSubclass = $targetEntity->subClasses[max(\count($targetEntity->subClasses) - 1, 0)]; |
|
| 37 | 37 | return is_subclass_of($highestSubclass, PublishableInterface::class); |
| 38 | 38 | } |
| 39 | 39 | $reflection = $targetEntity->getReflectionClass(); |