Passed
Push — master ( e67af9...64baeb )
by Luiz Kim
09:26 queued 01:57
created
src/Controller/GetMenuByPeopleAction.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,15 +56,17 @@
 block discarded – undo
56 56
 
57 57
       $company = $request->query->get('myCompany', null);
58 58
 
59
-      if ($company === null)
60
-        throw new Exception("Company not found", 404);
59
+      if ($company === null) {
60
+              throw new Exception("Company not found", 404);
61
+      }
61 62
 
62 63
 
63 64
       $myCompany = $this->manager->getRepository(People::class)
64 65
         ->find($company);
65 66
 
66
-      if ($myCompany === null)
67
-        throw new Exception("Company not found", 404);
67
+      if ($myCompany === null) {
68
+              throw new Exception("Company not found", 404);
69
+      }
68 70
 
69 71
 
70 72
 
Please login to merge, or discard this patch.
src/Controller/GetActionByPeopleAction.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,15 +55,17 @@
 block discarded – undo
55 55
 
56 56
       $company = $request->query->get('myCompany', null);
57 57
 
58
-      if ($company === null)
59
-        throw new Exception("Company not found", 404);
58
+      if ($company === null) {
59
+              throw new Exception("Company not found", 404);
60
+      }
60 61
 
61 62
 
62 63
       $myCompany = $this->manager->getRepository(People::class)
63 64
         ->find($company);
64 65
 
65
-      if ($myCompany === null)
66
-        throw new Exception("Company not found", 404);
66
+      if ($myCompany === null) {
67
+              throw new Exception("Company not found", 404);
68
+      }
67 69
 
68 70
 
69 71
 
Please login to merge, or discard this patch.