Completed
Pull Request — master (#19)
by Matthew
02:56
created
src/AppBundle/Controller/ArticleInfoController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     private function getRevCount()
165 165
     {
166 166
         $query = "SELECT COUNT(*) AS count FROM " . $this->revisionTable
167
-                 . " WHERE rev_page = '" . $this->pageInfo['id'] . "'";
167
+                    . " WHERE rev_page = '" . $this->pageInfo['id'] . "'";
168 168
         $res = $this->conn->query($query)->fetchAll();
169 169
         return $res[0]['count'];
170 170
     }
Please login to merge, or discard this patch.
src/AppBundle/Helper/AutomatedEditsHelper.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         /** @var LabsHelper $labsHelper */
126 126
         $labsHelper = $this->container->get('app.labs_helper');
127 127
         $sql = "SELECT rev_comment FROM ".$labsHelper->getTable('revision')
128
-               ." WHERE rev_user=:userId ORDER BY rev_timestamp DESC LIMIT 1000";
128
+                ." WHERE rev_user=:userId ORDER BY rev_timestamp DESC LIMIT 1000";
129 129
         $resultQuery = $replicas->prepare($sql);
130 130
         $resultQuery->bindParam("userId", $userId);
131 131
         $resultQuery->execute();
Please login to merge, or discard this patch.
src/AppBundle/Controller/QuoteController.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
         // a flash notice.
74 74
         try {
75 75
             $id = rand(1, sizeof($this->getParameter("quotes")));
76
-        }
77
-        catch (InvalidParameterException $e) {
76
+        } catch (InvalidParameterException $e) {
78 77
             $this->addFlash("notice", ["noquotes"]);
79 78
             return $this->redirectToRoute("quote");
80 79
         }
@@ -101,8 +100,7 @@  discard block
 block discarded – undo
101 100
         // a flash notice.
102 101
         try {
103 102
             $quotes = $this->getParameter("quotes");
104
-        }
105
-        catch (InvalidParameterException $e) {
103
+        } catch (InvalidParameterException $e) {
106 104
             $this->addFlash("notice", ["noquotes"]);
107 105
             return $this->redirectToRoute("quote");
108 106
         }
Please login to merge, or discard this patch.