| @@ -41,7 +41,7 @@ discard block | ||
| 41 | 41 | |
| 42 | 42 | // If we've got a project and user, redirect to results. | 
| 43 | 43 |          if ($projectName != '' && $username != '') { | 
| 44 | - $routeParams = [ 'project' => $projectName, 'username' => $username ]; | |
| 44 | + $routeParams = ['project' => $projectName, 'username' => $username]; | |
| 45 | 45 |              return $this->redirectToRoute('SimpleEditCounterResult', $routeParams); | 
| 46 | 46 | } | 
| 47 | 47 | |
| @@ -108,8 +108,8 @@ discard block | ||
| 108 | 108 | $resultQuery->execute(); | 
| 109 | 109 | |
| 110 | 110 |          if ($resultQuery->errorCode() > 0) { | 
| 111 | -            $this->addFlash('notice', [ 'no-result', $username ]); | |
| 112 | -            return $this->redirectToRoute('SimpleEditCounterProject', [ 'project' => $project->getDomain() ]); | |
| 111 | +            $this->addFlash('notice', ['no-result', $username]); | |
| 112 | +            return $this->redirectToRoute('SimpleEditCounterProject', ['project' => $project->getDomain()]); | |
| 113 | 113 | } | 
| 114 | 114 | |
| 115 | 115 | // Fetch the result data | 
| @@ -133,16 +133,16 @@ discard block | ||
| 133 | 133 | $rev = $row['value']; | 
| 134 | 134 | } | 
| 135 | 135 |              if ($row['source'] == 'groups') { | 
| 136 | - $groups .= $row['value']. ', '; | |
| 136 | + $groups .= $row['value'].', '; | |
| 137 | 137 | } | 
| 138 | 138 | } | 
| 139 | 139 | |
| 140 | 140 | // Unknown user - If the user is created the $results variable will have 3 entries. | 
| 141 | 141 | // This is a workaround to detect non-existent IPs. | 
| 142 | 142 |          if (count($results) < 3 && $arch == 0 && $rev == 0) { | 
| 143 | -            $this->addFlash('notice', [ 'no-result', $username ]); | |
| 143 | +            $this->addFlash('notice', ['no-result', $username]); | |
| 144 | 144 | |
| 145 | -            return $this->redirectToRoute('SimpleEditCounterProject', [ 'project' => $project->getDomain() ]); | |
| 145 | +            return $this->redirectToRoute('SimpleEditCounterProject', ['project' => $project->getDomain()]); | |
| 146 | 146 | } | 
| 147 | 147 | |
| 148 | 148 | // Remove the last comma and space | 
| @@ -172,7 +172,7 @@ discard block | ||
| 172 | 172 | 'project_url' => $url, | 
| 173 | 173 | 'id' => $id, | 
| 174 | 174 | 'arch' => $arch, | 
| 175 | - 'rev' => $rev + $arch, | |
| 175 | + 'rev' => $rev+$arch, | |
| 176 | 176 | 'live' => $rev, | 
| 177 | 177 | 'groups' => $groups, | 
| 178 | 178 | 'globalGroups' => $globalGroups, |