Passed
Push — master ( be26c9...87f8af )
by Luiz Kim
02:08
created
src/Controller/CreateUserAction.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,9 @@
 block discarded – undo
119 119
                 'id' => $user->getId()
120 120
             ];
121 121
         } catch (\Exception $e) {
122
-            if ($this->manager->getConnection()->isTransactionActive())
123
-                $this->manager->getConnection()->rollBack();
122
+            if ($this->manager->getConnection()->isTransactionActive()) {
123
+                            $this->manager->getConnection()->rollBack();
124
+            }
124 125
 
125 126
             throw new \InvalidArgumentException($e->getMessage());
126 127
         }
Please login to merge, or discard this patch.
src/Controller/DeleteUserAction.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,9 @@
 block discarded – undo
113 113
 
114 114
             return true;
115 115
         } catch (\Exception $e) {
116
-            if ($this->manager->getConnection()->isTransactionActive())
117
-                $this->manager->getConnection()->rollBack();
116
+            if ($this->manager->getConnection()->isTransactionActive()) {
117
+                            $this->manager->getConnection()->rollBack();
118
+            }
118 119
 
119 120
             throw new \InvalidArgumentException($e->getMessage());
120 121
         }
Please login to merge, or discard this patch.
src/Service/PeopleRoleService.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,10 +168,11 @@
 block discarded – undo
168 168
     $domain  = $_SERVER['HTTP_HOST'];
169 169
     $company = $this->manager->getRepository(PeopleDomain::class)->findOneBy(['domain' => $domain]);
170 170
 
171
-    if ($company === null)
172
-      throw new \Exception(
171
+    if ($company === null) {
172
+          throw new \Exception(
173 173
         sprintf('Main company "%s" not found', $domain)
174 174
       );
175
+    }
175 176
 
176 177
     return $company->getPeople();
177 178
   }
Please login to merge, or discard this patch.