@@ -319,8 +319,8 @@ |
||
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 | } |
@@ -85,7 +85,7 @@ |
||
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 |
@@ -107,7 +107,7 @@ |
||
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); |
@@ -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]; |