@@ -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]; |
@@ -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 | } else { |
367 | 367 | $description = 'Unknown task'; |
@@ -184,7 +184,7 @@ |
||
184 | 184 | $emailDomain = explode("@", $request->getEmail())[1]; |
185 | 185 | $this->assign("emailurl", $emailDomain); |
186 | 186 | $this->assign('commonEmailDomain', in_array(strtolower($emailDomain), $configuration->getCommonEmailDomains()) |
187 | - || $request->getEmail() === $this->getSiteConfiguration()->getDataClearEmail() ); |
|
187 | + || $request->getEmail() === $this->getSiteConfiguration()->getDataClearEmail()); |
|
188 | 188 | |
189 | 189 | $trustedIp = $xffProvider->getTrustedClientIp($request->getIp(), $request->getForwardedIp()); |
190 | 190 | $this->assign('requestTrustedIp', $trustedIp); |