Passed
Push — errorviewer ( bb5419...defbed )
by Simon
40:12 queued 30:10
created
includes/Tasks/PageBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -319,8 +319,8 @@
 block discarded – undo
319 319
      *
320 320
      * @param string $path The path (relative to the application root) of the file
321 321
      */
322
-    final protected function addJs($path){
323
-        if(in_array($path, $this->extraJs)){
322
+    final protected function addJs($path) {
323
+        if (in_array($path, $this->extraJs)) {
324 324
             // nothing to do
325 325
             return;
326 326
         }
Please login to merge, or discard this patch.
includes/ConsoleTasks/RunJobQueueTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
                 // Create a task.
86 86
                 $taskName = $job->getTask();
87 87
 
88
-                if(!class_exists($taskName)) {
88
+                if (!class_exists($taskName)) {
89 89
                     throw new ApplicationLogicException('Job task does not exist');
90 90
                 }
91 91
 
Please login to merge, or discard this patch.
includes/Pages/PageWelcomeTemplateManagement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         // <https://accounts.wmflabs.org/wiki/Help:Introduction>
108 108
         // The code currently assumes that the template was parsed for enwiki, and will need to be
109 109
         // updated once other wikis are supported.
110
-        $templateHtml = preg_replace( '/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml );
110
+        $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml);
111 111
 
112 112
         $this->assign('templateHtml', $templateHtml);
113 113
         $this->assign('template', $template);
Please login to merge, or discard this patch.
includes/API/Actions/CountAction.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -115,14 +115,14 @@
 block discarded – undo
115 115
         // Each entry is in the form [ database string, attribute name ]
116 116
         // and it happens to be that the attribute is just the lower case form of the database value
117 117
         $actions = [
118
-            [ 'Suspended', 'suspended' ],
119
-            [ 'Promoted', 'promoted' ],
120
-            [ 'Approved', 'approved' ],
121
-            [ 'Demoted', 'demoted' ],
122
-            [ 'Declined', 'declined' ],
123
-            [ 'Renamed', 'renamed' ],
124
-            [ 'Edited', 'edited' ],
125
-            [ 'Prefchange', 'prefchange' ],
118
+            ['Suspended', 'suspended'],
119
+            ['Promoted', 'promoted'],
120
+            ['Approved', 'approved'],
121
+            ['Demoted', 'demoted'],
122
+            ['Declined', 'declined'],
123
+            ['Renamed', 'renamed'],
124
+            ['Edited', 'edited'],
125
+            ['Prefchange', 'prefchange'],
126 126
         ];
127 127
         foreach ($actions as $action) {
128 128
             $dbValue = $action[0];
Please login to merge, or discard this patch.