Passed
Push — master ( 95a4b8...3a574b )
by Luiz Kim
03:30 queued 01:39
created
src/Entity/ProductGroupProducts.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,15 +23,15 @@
 block discarded – undo
23 23
  #[ApiResource(
24 24
     operations: [
25 25
         new Get(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')'),
26
-        new Put(security: 'is_granted(\'ROLE_CLIENT\')', denormalizationContext: ['groups' => ['product_group_write']]),
26
+        new Put(security: 'is_granted(\'ROLE_CLIENT\')', denormalizationContext: [ 'groups' => [ 'product_group_write' ] ]),
27 27
         new Delete(security: 'is_granted(\'ROLE_CLIENT\')'),
28 28
         new Post(securityPostDenormalize: 'is_granted(\'ROLE_CLIENT\')'),
29 29
         new GetCollection(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')')
30 30
     ],
31
-    formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']],
32
-    normalizationContext: ['groups' => ['product_group_read']],
33
-    denormalizationContext: ['groups' => ['product_group_write']]
34
-)]
31
+    formats: [ 'jsonld', 'json', 'html', 'jsonhal', 'csv' => [ 'text/csv' ] ],
32
+    normalizationContext: [ 'groups' => [ 'product_group_read' ] ],
33
+    denormalizationContext: [ 'groups' => [ 'product_group_write' ] ]
34
+) ]
35 35
 class ProductGroupProducts
36 36
 {
37 37
     /**
Please login to merge, or discard this patch.