@@ -56,15 +56,17 @@ |
||
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 |
@@ -55,15 +55,17 @@ |
||
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 |