@@ -11,11 +11,8 @@ |
||
| 11 | 11 | use Symfony\Component\HttpFoundation\RedirectResponse; |
| 12 | 12 | use Symfony\Component\HttpFoundation\Request; |
| 13 | 13 | use Symfony\Component\HttpFoundation\Response; |
| 14 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 15 | 14 | use Xtools\ProjectRepository; |
| 16 | 15 | use Xtools\UserRepository; |
| 17 | -use Xtools\Page; |
|
| 18 | -use Xtools\Edit; |
|
| 19 | 16 | |
| 20 | 17 | /** |
| 21 | 18 | * This controller serves the Pages tool. |
@@ -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 |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | JOIN $revisionTable ON page_id = rev_page |
| 197 | 197 | $paJoin |
| 198 | 198 | WHERE $whereRev AND rev_parent_id = '0' $namespaceConditionRev $redirectCondition |
| 199 | - " . ($hasPageAssessments ? 'GROUP BY rev_page' : '') . " |
|
| 199 | + ".($hasPageAssessments ? 'GROUP BY rev_page' : '')." |
|
| 200 | 200 | ) |
| 201 | 201 | |
| 202 | 202 | UNION |
@@ -280,8 +280,8 @@ discard block |
||
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | if ($total < 1) { |
| 283 | - $this->addFlash('notice', [ 'no-result', $username ]); |
|
| 284 | - return $this->redirectToRoute('PagesProject', [ 'project' => $project ]); |
|
| 283 | + $this->addFlash('notice', ['no-result', $username]); |
|
| 284 | + return $this->redirectToRoute('PagesProject', ['project' => $project]); |
|
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | ksort($pagesByNamespaceByDate); |