@@ -193,14 +193,16 @@ |
||
| 193 | 193 | return $this->partiallyLinked; |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | - public function canCreateAccount() { |
|
| 196 | + public function canCreateAccount() |
|
| 197 | + { |
|
| 197 | 198 | return $this->isFullyLinked() |
| 198 | 199 | && $this->getIdentity(true)->getGrantBasic() |
| 199 | 200 | && $this->getIdentity(true)->getGrantHighVolume() |
| 200 | 201 | && $this->getIdentity(true)->getGrantCreateAccount(); |
| 201 | 202 | } |
| 202 | 203 | |
| 203 | - public function canWelcome() { |
|
| 204 | + public function canWelcome() |
|
| 205 | + { |
|
| 204 | 206 | return $this->isFullyLinked() |
| 205 | 207 | && $this->getIdentity(true)->getGrantBasic() |
| 206 | 208 | && $this->getIdentity(true)->getGrantHighVolume() |
@@ -131,7 +131,8 @@ |
||
| 131 | 131 | $task->setNotificationHelper($this->getNotificationHelper()); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - public static function errorHandler($errno, $errstr, $errfile, $errline) { |
|
| 134 | + public static function errorHandler($errno, $errstr, $errfile, $errline) |
|
| 135 | + { |
|
| 135 | 136 | throw new Exception($errfile . "@" . $errline . ": " . $errstr); |
| 136 | 137 | } |
| 137 | 138 | } |
@@ -30,8 +30,7 @@ |
||
| 30 | 30 | public function authenticate(User $user, $data) |
| 31 | 31 | { |
| 32 | 32 | $storedData = $this->getCredentialData($user->getId()); |
| 33 | - if($storedData === null) |
|
| 34 | - { |
|
| 33 | + if($storedData === null) { |
|
| 35 | 34 | // No available credential matching these parameters |
| 36 | 35 | return false; |
| 37 | 36 | } |
@@ -190,7 +190,8 @@ |
||
| 190 | 190 | $endpoint = $this->siteConfiguration->getMetaWikimediaWebServiceEndpoint(); |
| 191 | 191 | $response = $this->httpHelper->get($endpoint, $parameters); |
| 192 | 192 | $response = json_decode($response, true); |
| 193 | - } catch (CurlException $ex) { |
|
| 193 | + } |
|
| 194 | + catch (CurlException $ex) { |
|
| 194 | 195 | // failed getting identification status, so throw a nicer error. |
| 195 | 196 | $message = 'Could not contact metawiki API to determine user\' identification status. ' |
| 196 | 197 | . 'This is probably a transient error, so please try again.'; |
@@ -214,7 +214,8 @@ |
||
| 214 | 214 | 'jobId' => $job->getId(), |
| 215 | 215 | 'jobDesc' => JobQueue::getTaskDescriptions()[$job->getTask()], |
| 216 | 216 | ); |
| 217 | - } else { |
|
| 217 | + } |
|
| 218 | + else { |
|
| 218 | 219 | $requestLogs[] = array( |
| 219 | 220 | 'type' => 'log', |
| 220 | 221 | 'security' => 'user', |