From 68afc74b03f83bb072944911c15af60433280ace Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 10 Nov 2019 23:26:23 +0100 Subject: Formatting to follow PSR-12 --- src/Exceptions/Handlers/Legacy.php | 2 +- src/Exceptions/Handlers/LegacyDevelopment.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Exceptions/Handlers') diff --git a/src/Exceptions/Handlers/Legacy.php b/src/Exceptions/Handlers/Legacy.php index 461dabe1..45285a8d 100644 --- a/src/Exceptions/Handlers/Legacy.php +++ b/src/Exceptions/Handlers/Legacy.php @@ -13,7 +13,7 @@ class Legacy implements HandlerInterface */ public function render($request, Throwable $e) { - echo 'An unexpected error occurred, a team of untrained monkeys has been dispatched to deal with it.'; + echo 'An unexpected error occurred. A team of untrained monkeys has been dispatched to fix it.'; } /** diff --git a/src/Exceptions/Handlers/LegacyDevelopment.php b/src/Exceptions/Handlers/LegacyDevelopment.php index cfa4efa4..d6a11949 100644 --- a/src/Exceptions/Handlers/LegacyDevelopment.php +++ b/src/Exceptions/Handlers/LegacyDevelopment.php @@ -15,7 +15,11 @@ class LegacyDevelopment extends Legacy { $file = $this->stripBasePath($e->getFile()); - echo '
';
+        echo sprintf(
+            '
',
+            'background-color:#333;color:#ccc;z-index:1000;position:fixed;'
+            . 'bottom:1em;padding:1em;width:97%;max-height:90%;overflow-y:auto;'
+        );
         echo sprintf('%s: (%s)' . PHP_EOL, get_class($e), $e->getCode());
         $data = [
             'string'     => $e->getMessage(),
-- 
cgit v1.2.3-54-g00ecf