Completed
Push — master ( d98cba...a803a4 )
by Sam
14:54
created
src/AppBundle/Controller/PagesController.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,8 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.