Passed
Push — master ( 75a08d...5ece5f )
by Luiz Kim
04:43 queued 02:16
created
src/Entity/ProductFile.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
         new Get(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')'),
27 27
         new Put(
28 28
             security: 'is_granted(\'ROLE_CLIENT\')',
29
-            denormalizationContext: ['groups' => ['product_file:write']]
29
+            denormalizationContext: [ 'groups' => [ 'product_file:write' ] ]
30 30
         ),
31 31
         new Delete(security: 'is_granted(\'ROLE_CLIENT\')'),
32 32
         new Post(securityPostDenormalize: 'is_granted(\'ROLE_CLIENT\')'),
33 33
         new GetCollection(security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CLIENT\')')
34 34
     ],
35
-    formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']],
36
-    normalizationContext: ['groups' => ['product_file:read']],
37
-    denormalizationContext: ['groups' => ['product_file:write']]
38
-)]
35
+    formats: [ 'jsonld', 'json', 'html', 'jsonhal', 'csv' => [ 'text/csv' ] ],
36
+    normalizationContext: [ 'groups' => [ 'product_file:read' ] ],
37
+    denormalizationContext: [ 'groups' => [ 'product_file:write' ] ]
38
+) ]
39 39
 class ProductFile
40 40
 {
41 41
     /**
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
      * })
58 58
      * @Groups({"product_details:read","product_file:read","product_file:write","product_category:read"})
59 59
      */
60
-    #[ApiFilter(filterClass: SearchFilter::class, properties: ['file' => 'exact'])]
61
-    #[ApiFilter(filterClass: SearchFilter::class, properties: ['file.fileType' => 'exact'])]
60
+    #[ApiFilter(filterClass: SearchFilter::class, properties: [ 'file' => 'exact' ]) ]
61
+    #[ApiFilter(filterClass: SearchFilter::class, properties: [ 'file.fileType' => 'exact' ]) ]
62 62
 
63 63
     private $file;
64 64
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * })
72 72
      * @Groups({"product_file:read","product_file:write"})
73 73
      */
74
-    #[ApiFilter(filterClass: SearchFilter::class, properties: ['product' => 'exact'])]
74
+    #[ApiFilter(filterClass: SearchFilter::class, properties: [ 'product' => 'exact' ]) ]
75 75
 
76 76
     private $product;
77 77
 
Please login to merge, or discard this patch.