@@ -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. ' |
@@ -376,7 +376,8 @@ |
||
376 | 376 | return new DateTime($logTime); |
377 | 377 | } |
378 | 378 | |
379 | - public function getLastUpdated() { |
|
379 | + public function getLastUpdated() |
|
380 | + { |
|
380 | 381 | $logQuery = $this->dbObject->prepare(<<<SQL |
381 | 382 | SELECT max(d.ts) FROM ( |
382 | 383 | SELECT r.date AS ts FROM request r WHERE r.id = :requestr |
@@ -104,7 +104,7 @@ |
||
104 | 104 | } |
105 | 105 | |
106 | 106 | // name is too long |
107 | - if (mb_strlen(trim($request->getName())) > 500 ) { |
|
107 | + if (mb_strlen(trim($request->getName())) > 500) { |
|
108 | 108 | $errorList[ValidationError::NAME_EMPTY] = new ValidationError(ValidationError::NAME_TOO_LONG); |
109 | 109 | } |
110 | 110 |