@@ -352,7 +352,7 @@ |
||
352 | 352 | $creationTaskClass = null; |
353 | 353 | |
354 | 354 | if ($action === self::CREATE_OAUTH) { |
355 | - if(!$canOauthCreate) { |
|
355 | + if (!$canOauthCreate) { |
|
356 | 356 | throw new AccessDeniedException($this->getSecurityManager()); |
357 | 357 | } |
358 | 358 |
@@ -190,7 +190,7 @@ |
||
190 | 190 | $endpoint = $this->siteConfiguration->getMetaWikimediaWebServiceEndpoint(); |
191 | 191 | $response = $this->httpHelper->get($endpoint, $parameters); |
192 | 192 | $response = json_decode($response, true); |
193 | - } |
|
193 | + } |
|
194 | 194 | catch (CurlException $ex) { |
195 | 195 | // failed getting identification status, so throw a nicer error. |
196 | 196 | $message = 'Could not contact metawiki API to determine user\' identification status. ' |
@@ -117,7 +117,8 @@ |
||
117 | 117 | Logger::backgroundJobIssue($this->getDatabase(), $job); |
118 | 118 | |
119 | 119 | $database->commit(); |
120 | - } catch (Exception $ex) { |
|
120 | + } |
|
121 | + catch (Exception $ex) { |
|
121 | 122 | // oops, something went horribly wrong trying to handle this in a nice way; let's just fall back to |
122 | 123 | // logging this to disk for a tool root to investigate. |
123 | 124 | ExceptionHandler::logExceptionToDisk($ex, $this->getSiteConfiguration()); |