@@ -50,7 +50,8 @@ public function __construct(
5050 private readonly ResourceMetadataCollectionFactoryInterface $ resourceMetadataCollectionFactory ,
5151 private readonly ?ProviderInterface $ parameterProvider ,
5252 private readonly string $ itemsPerPageParameterName ,
53- ) {}
53+ ) {
54+ }
5455
5556 public function supportsTransformation ($ data , string $ to , array $ context = []): bool
5657 {
@@ -87,7 +88,7 @@ private function transform(Collection $object): Collection
8788 }
8889
8990 // Build context
90- $ collectionContext = [ 'operation ' => $ getCollectionOperation , 'resource_class ' => $ resourceClass ];
91+ $ collectionContext = ['operation ' => $ getCollectionOperation , 'resource_class ' => $ resourceClass ];
9192
9293 // Build filters
9394 $ filters = [];
@@ -122,7 +123,7 @@ private function transform(Collection $object): Collection
122123 }
123124 $ clonedRequest ->attributes ->set ('_api_query_parameters ' , $ clonedRequest ->query ->all ());
124125 }
125- $ this ->parameterProvider ->provide ($ getCollectionOperation , $ uriVariables , [ ...$ collectionContext , 'request ' => $ clonedRequest , 'uri_variables ' => $ uriVariables ]);
126+ $ this ->parameterProvider ->provide ($ getCollectionOperation , $ uriVariables , [...$ collectionContext , 'request ' => $ clonedRequest , 'uri_variables ' => $ uriVariables ]);
126127 // Operation $operation, array $uriVariables = [], array $context = []
127128 $ collectionData = $ this ->provider ->provide ($ getCollectionOperation , $ uriVariables , $ collectionContext );
128129 } catch (InvalidIdentifierException $ e ) {
0 commit comments