@@ -361,7 +361,7 @@ |
||
361 | 361 | } |
362 | 362 | |
363 | 363 | $task = $job->getTask(); |
364 | - if (isset($taskDescriptions[$task])){ |
|
364 | + if (isset($taskDescriptions[$task])) { |
|
365 | 365 | $description = $taskDescriptions[$task]; |
366 | 366 | } |
367 | 367 | else { |
@@ -321,7 +321,7 @@ |
||
321 | 321 | */ |
322 | 322 | final protected function addJs($path) |
323 | 323 | { |
324 | - if (in_array($path, $this->extraJs)){ |
|
324 | + if (in_array($path, $this->extraJs)) { |
|
325 | 325 | // nothing to do |
326 | 326 | return; |
327 | 327 | } |
@@ -122,7 +122,7 @@ |
||
122 | 122 | // <https://accounts.wmflabs.org/wiki/Help:Introduction> |
123 | 123 | // The code currently assumes that the template was parsed for enwiki, and will need to be |
124 | 124 | // updated once other wikis are supported. |
125 | - $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml ); |
|
125 | + $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml); |
|
126 | 126 | |
127 | 127 | $this->assign('templateHtml', $templateHtml); |
128 | 128 | $this->assign('template', $template); |
@@ -115,14 +115,14 @@ |
||
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]; |