@@ -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[$project->getDatabaseName()])) { |
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 | [ |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | // Unknown user or generated no results |
173 | 173 | // This is a workaround to detect non-existent IPs. |
174 | 174 | if (count($results) == 0) { |
175 | - $this->addFlash('notice', [ 'no-result', $username ]); |
|
175 | + $this->addFlash('notice', ['no-result', $username]); |
|
176 | 176 | |
177 | 177 | return $this->redirectToRoute( |
178 | 178 | 'DeletionCounterProject', |