@@ -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 |
@@ -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()); |