Completed
Pull Request — master (#67)
by Matthew
02:54
created
src/AppBundle/Twig/AppExtension.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -489,7 +489,9 @@
 block discarded – undo
489 489
      */
490 490
     public function quote()
491 491
     {
492
-        if (!$this->container->getParameter("enable.bash")) return "";
492
+        if (!$this->container->getParameter("enable.bash")) {
493
+            return "";
494
+        }
493 495
         $quotes = $this->container->getParameter('quotes');
494 496
         $id = array_rand($quotes);
495 497
         return $quotes[$id];
Please login to merge, or discard this patch.
src/AppBundle/Helper/ApiHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -363,8 +363,7 @@
 block discarded – undo
363 363
             foreach($res["query"]["pages"] as $key => $value) {
364 364
                 if(isset($value["revisions"][0]["*"])) {
365 365
                     $result[$value["title"]] = $value["revisions"][0]["*"];
366
-                }
367
-                else {
366
+                } else {
368 367
                     $result[$value["title"]] = "";
369 368
                 }
370 369
             }
Please login to merge, or discard this patch.
src/Xtools/ProjectRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,8 +208,7 @@
 block discarded – undo
208 208
 
209 209
         try {
210 210
             $api = MediawikiApi::newFromPage($projectUrl);
211
-        }
212
-        catch (\Exception $e) {
211
+        } catch (\Exception $e) {
213 212
             return null;
214 213
         }
215 214
 
Please login to merge, or discard this patch.
src/Xtools/RFA.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
         $sectionName = strtolower($sectionName);
90 90
         if (!isset($this->data[$sectionName])) {
91 91
             return [];
92
-        }
93
-        else {
92
+        } else {
94 93
             return $this->data[$sectionName];
95 94
         }
96 95
     }
Please login to merge, or discard this patch.