Passed
Push — master ( 878c38...d4077c )
by Luiz Kim
02:25
created
src/Repository/OrderRepository.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
       );
57 57
 
58 58
     if ($company)
59
-      $qb->andWhere('pe = :company')->setParameter('company',  $company);
59
+      $qb->andWhere('pe = :company')->setParameter('company', $company);
60 60
 
61 61
     return $qb->getQuery()->getResult();
62 62
   }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,9 @@
 block discarded – undo
55 55
         $this->peopleService->getMyCompanies()
56 56
       );
57 57
 
58
-    if ($company)
59
-      $qb->andWhere('pe = :company')->setParameter('company',  $company);
58
+    if ($company) {
59
+          $qb->andWhere('pe = :company')->setParameter('company',  $company);
60
+    }
60 61
 
61 62
     return $qb->getQuery()->getResult();
62 63
   }
Please login to merge, or discard this patch.
src/Service/OrderService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         RequestStack $requestStack
22 22
 
23 23
     ) {
24
-        $this->request  = $requestStack->getCurrentRequest();
24
+        $this->request = $requestStack->getCurrentRequest();
25 25
     }
26 26
 
27 27
     public function getPurchasingSuggestion(People $company)
Please login to merge, or discard this patch.
src/Controller/PurchasingSuggestionAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function getPurchasingSuggestion(Request $request): JsonResponse
25 25
     {
26
-        $company =  $this->entityManager->getRepository(People::class)->find($request->get('company'));
26
+        $company = $this->entityManager->getRepository(People::class)->find($request->get('company'));
27 27
         $data = $this->orderService->getPurchasingSuggestion($company);
28 28
         return new JsonResponse($data);
29 29
     }
Please login to merge, or discard this patch.