diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2025-03-27 11:21:01 +1100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2025-03-27 11:21:01 +1100 |
| commit | 9dc6c537b7a95fb631c706b7bfd0e3d67115ebe1 (patch) | |
| tree | 5c4542aab7a8a0128b1a4ec441621164dd90c042 | |
| parent | baddd206befd5fab178ed5cbb293042ebd7062a2 (diff) | |
| download | webtrees-9dc6c537b7a95fb631c706b7bfd0e3d67115ebe1.tar.gz webtrees-9dc6c537b7a95fb631c706b7bfd0e3d67115ebe1.tar.bz2 webtrees-9dc6c537b7a95fb631c706b7bfd0e3d67115ebe1.zip | |
CodeStyle
| -rw-r--r-- | app/Cli/Commands/UserList.php | 1 | ||||
| -rw-r--r-- | app/Http/Middleware/HandleExceptions.php | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/app/Cli/Commands/UserList.php b/app/Cli/Commands/UserList.php index 17f299cc19..d8b0b0cdc9 100644 --- a/app/Cli/Commands/UserList.php +++ b/app/Cli/Commands/UserList.php @@ -112,7 +112,6 @@ final class UserList extends AbstractCommand private function formatTimestamp(int $timestamp): string { - if ($timestamp === 0) { return ''; } diff --git a/app/Http/Middleware/HandleExceptions.php b/app/Http/Middleware/HandleExceptions.php index 348af7e6ca..386960b313 100644 --- a/app/Http/Middleware/HandleExceptions.php +++ b/app/Http/Middleware/HandleExceptions.php @@ -74,12 +74,7 @@ class HandleExceptions implements MiddlewareInterface, StatusCodeInterface if (error_get_last() !== null && error_get_last()['type'] & E_ERROR) { // If PHP does not display the error, then we must display it. if (!$this->php_service->displayErrors()) { - echo - error_get_last()['message'], - '<br><br>', - error_get_last()['file'], - ': ', - error_get_last()['line']; + echo error_get_last()['message'], '<br>', error_get_last()['file'], ': ', error_get_last()['line']; } } }); |
