Passed
Push — master ( 0be31e...6fb6f7 )
by Luiz Kim
02:22
created
src/Repository/ProductRepository.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             ->andWhere('pe IN (:companies)')
46 46
             ->groupBy('p.id, p.product, p.description, p.sku, pe.id, pe.name, pe.alias')
47 47
             ->having('needed > 0')
48
-            ->setParameter('excludedTypes', ['custom', 'component'])
48
+            ->setParameter('excludedTypes', [ 'custom', 'component' ])
49 49
             ->setParameter(
50 50
                 'companies',
51 51
                 $this->peopleService->getMyCompanies()
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,9 @@
 block discarded – undo
51 51
                 $this->peopleService->getMyCompanies()
52 52
             );
53 53
 
54
-        if ($company)
55
-            $qb->andWhere('pe = :company')->setParameter('company', $company);
54
+        if ($company) {
55
+                    $qb->andWhere('pe = :company')->setParameter('company', $company);
56
+        }
56 57
 
57 58
         return $qb->getQuery()->getResult();
58 59
     }
Please login to merge, or discard this patch.
src/Controller/PurchasingSuggestionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function getPurchasingSuggestion(Request $request): JsonResponse
26 26
     {
27
-        $company =  $this->entityManager->getRepository(People::class)->find($request->get('company'));
27
+        $company = $this->entityManager->getRepository(People::class)->find($request->get('company'));
28 28
         $data = $this->productService->getPurchasingSuggestion($company);
29 29
         return new JsonResponse($data);
30 30
     }
Please login to merge, or discard this patch.