Passed
Push — master ( 9fd02c...e86304 )
by
unknown
10:08
created
src/Controller/VendorController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     private function shouldProductsPositionsBeUpdated(Request $request, ?array $vendors): bool
74 74
     {
75
-        return in_array($request->getMethod(), ['POST', 'PUT', 'PATCH'], true) && null !== $vendors;
75
+        return in_array($request->getMethod(), [ 'POST', 'PUT', 'PATCH' ], true) && null !== $vendors;
76 76
     }
77 77
 
78 78
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         Assert::numeric($position, sprintf('The position "%s" is invalid.', $position));
85 85
 
86 86
         /** @var VendorInterface $vendorFromBase */
87
-        $vendorFromBase = $this->repository->findOneBy(['id' => $id]);
87
+        $vendorFromBase = $this->repository->findOneBy([ 'id' => $id ]);
88 88
         $vendorFromBase->setPosition((int) $position);
89 89
     }
90 90
 }
Please login to merge, or discard this patch.