@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $this->stopwatch->start($cacheKey, 'XTools'); |
| 77 | 77 | $api = $this->getMediawikiApi($project); |
| 78 | - $params = [ "list"=>"users", "ususers"=>$username, "usprop"=>"groups" ]; |
|
| 78 | + $params = ["list"=>"users", "ususers"=>$username, "usprop"=>"groups"]; |
|
| 79 | 79 | $query = new SimpleRequest('query', $params); |
| 80 | 80 | $result = []; |
| 81 | 81 | $res = $api->getRequest($query); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | // Create the API query. |
| 112 | 112 | $api = $this->getMediawikiApi($project); |
| 113 | - $params = [ "meta"=>"globaluserinfo", "guiuser"=>$username, "guiprop"=>"groups" ]; |
|
| 113 | + $params = ["meta"=>"globaluserinfo", "guiuser"=>$username, "guiprop"=>"groups"]; |
|
| 114 | 114 | $query = new SimpleRequest('query', $params); |
| 115 | 115 | |
| 116 | 116 | // Get the result. |
@@ -153,8 +153,8 @@ discard block |
||
| 153 | 153 | { |
| 154 | 154 | $username = $user->getUsername(); |
| 155 | 155 | |
| 156 | - $cacheKey = 'pages.' . $project->getDatabaseName() . '.' |
|
| 157 | - . $username . '.' . $namespace . '.' . $redirects; |
|
| 156 | + $cacheKey = 'pages.'.$project->getDatabaseName().'.' |
|
| 157 | + . $username.'.'.$namespace.'.'.$redirects; |
|
| 158 | 158 | if ($this->cache->hasItem($cacheKey)) { |
| 159 | 159 | return $this->cache->getItem($cacheKey)->get(); |
| 160 | 160 | } |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | JOIN $revisionTable ON page_id = rev_page |
| 213 | 213 | $paJoin |
| 214 | 214 | WHERE $whereRev AND rev_parent_id = '0' $namespaceConditionRev $redirectCondition |
| 215 | - " . ($hasPageAssessments ? 'GROUP BY rev_page' : '') . " |
|
| 215 | + ".($hasPageAssessments ? 'GROUP BY rev_page' : '')." |
|
| 216 | 216 | ) |
| 217 | 217 | |
| 218 | 218 | UNION |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | 'username' => $username, |
| 79 | 79 | ]); |
| 80 | 80 | } elseif ($projectQuery != "") { |
| 81 | - return $this->redirectToRoute("PagesProject", [ 'project'=>$projectQuery ]); |
|
| 81 | + return $this->redirectToRoute("PagesProject", ['project'=>$projectQuery]); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | // set default wiki so we can populate the namespace selector |
@@ -207,8 +207,8 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | if ($total < 1) { |
| 210 | - $this->addFlash('notice', [ 'no-result', $username ]); |
|
| 211 | - return $this->redirectToRoute('PagesProject', [ 'project' => $project ]); |
|
| 210 | + $this->addFlash('notice', ['no-result', $username]); |
|
| 211 | + return $this->redirectToRoute('PagesProject', ['project' => $project]); |
|
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | ksort($pagesByNamespaceByDate); |