Completed
Pull Request — master (#756)
by Amrouche
03:53
created
src/Bridge/NelmioApiDoc/Parser/ApiPlatformParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     }
127 127
     private function getGroupsContext(ResourceMetadata $resourceMetadata, string $operationName, bool $norm)
128 128
     {
129
-        $groupsContext = $norm ? 'normalization_context': 'denormalization_context' ;
129
+        $groupsContext = $norm ? 'normalization_context' : 'denormalization_context';
130 130
         $itemOperationAttribute = $resourceMetadata->getItemOperationAttribute($operationName, $groupsContext, [], true)['groups'];
131 131
         $collectionOperationAttribute = $resourceMetadata->getCollectionOperationAttribute($operationName, $groupsContext, [], true)['groups'];
132 132
         $operation[$groupsContext]['groups'] = array_merge(isset($itemOperationAttribute) ? $itemOperationAttribute : [], isset($collectionOperationAttribute) ? $collectionOperationAttribute : []);
Please login to merge, or discard this patch.