@@ -72,7 +72,7 @@ discard block |
||
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 |
||
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 | } |