@@ -12,7 +12,6 @@ |
||
12 | 12 | use Symfony\Component\HttpFoundation\Response; |
13 | 13 | use Xtools\Project; |
14 | 14 | use Xtools\ProjectRepository; |
15 | -use Xtools\User; |
|
16 | 15 | use Xtools\UserRepository; |
17 | 16 | |
18 | 17 | /** |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | // If we've got a project and user, redirect to results. |
58 | 58 | if ($projectName != '' && $username != '') { |
59 | - $routeParams = [ 'project' => $projectName, 'username' => $username ]; |
|
59 | + $routeParams = ['project' => $projectName, 'username' => $username]; |
|
60 | 60 | return $this->redirectToRoute( |
61 | 61 | 'DeletionCounterResult', |
62 | 62 | $routeParams |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $types = $this->container->getParameter("deletion_counter"); |
128 | 128 | |
129 | 129 | if (!isset($types[$domain])) { |
130 | - $this->addFlash('notice', [ 'no-result', $username ]); |
|
130 | + $this->addFlash('notice', ['no-result', $username]); |
|
131 | 131 | return $this->redirectToRoute( |
132 | 132 | 'DeletionCounter', |
133 | 133 | [ |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $resultQuery->execute(); |
154 | 154 | |
155 | 155 | if ($resultQuery->errorCode() > 0) { |
156 | - $this->addFlash('notice', [ 'no-result', $username ]); |
|
156 | + $this->addFlash('notice', ['no-result', $username]); |
|
157 | 157 | return $this->redirectToRoute( |
158 | 158 | 'DeletionCounterProject', |
159 | 159 | [ |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $resultData = $resultQuery->fetchAll(); |
167 | 167 | |
168 | 168 | if (count($resultData) == 0) { |
169 | - $this->addFlash('notice', [ 'no-result', $username ]); |
|
169 | + $this->addFlash('notice', ['no-result', $username]); |
|
170 | 170 | return $this->redirectToRoute( |
171 | 171 | 'DeletionCounterProject', |
172 | 172 | [ |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | // Unknown user or generated no results |
186 | 186 | // This is a workaround to detect non-existent IPs. |
187 | 187 | if (count($results) == 0) { |
188 | - $this->addFlash('notice', [ 'no-result', $username ]); |
|
188 | + $this->addFlash('notice', ['no-result', $username]); |
|
189 | 189 | |
190 | 190 | return $this->redirectToRoute( |
191 | 191 | 'DeletionCounterProject', |