Passed
Push — master ( e9b60d...d6242d )
by Luiz Kim
02:18
created
src/Entity/ProductCategory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,16 +28,16 @@  discard block
 block discarded – undo
28 28
         new Get(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')'),
29 29
         new Put(
30 30
             security: 'is_granted(\'ROLE_CLIENT\')',
31
-            denormalizationContext: ['groups' => ['product_category:write']]
31
+            denormalizationContext: [ 'groups' => [ 'product_category:write' ] ]
32 32
         ),
33 33
         new Delete(security: 'is_granted(\'ROLE_CLIENT\')'),
34 34
         new Post(securityPostDenormalize: 'is_granted(\'ROLE_CLIENT\')'),
35 35
         new GetCollection(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')')
36 36
     ],
37
-    formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']],
38
-    normalizationContext: ['groups' => ['product_category:read']],
39
-    denormalizationContext: ['groups' => ['product_category:write']]
40
-)]
37
+    formats: [ 'jsonld', 'json', 'html', 'jsonhal', 'csv' => [ 'text/csv' ] ],
38
+    normalizationContext: [ 'groups' => [ 'product_category:read' ] ],
39
+    denormalizationContext: [ 'groups' => [ 'product_category:write' ] ]
40
+) ]
41 41
 class ProductCategory
42 42
 {
43 43
     /**
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
      * })
60 60
      * @Groups({"product_category:read","product_category:write"})
61 61
      */
62
-    #[ApiFilter(filterClass: SearchFilter::class, properties: ['category' => 'exact'])]
63
-    #[ApiFilter(filterClass: SearchFilter::class, properties: ['category.company' => 'exact'])]
64
-    #[ApiFilter(filterClass: SearchFilter::class, properties: ['category.context' => 'exact'])]
62
+    #[ApiFilter(filterClass: SearchFilter::class, properties: [ 'category' => 'exact' ]) ]
63
+    #[ApiFilter(filterClass: SearchFilter::class, properties: [ 'category.company' => 'exact' ]) ]
64
+    #[ApiFilter(filterClass: SearchFilter::class, properties: [ 'category.context' => 'exact' ]) ]
65 65
 
66 66
     private $category;
67 67
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * })
75 75
      * @Groups({"product_category:read","product_category:write"})
76 76
      */
77
-    #[ApiFilter(filterClass: SearchFilter::class, properties: ['product' => 'exact'])]
77
+    #[ApiFilter(filterClass: SearchFilter::class, properties: [ 'product' => 'exact' ]) ]
78 78
 
79 79
     private $product;
80 80
 
Please login to merge, or discard this patch.