summaryrefslogtreecommitdiff
path: root/src/Exceptions/Handlers
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-10 23:26:23 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-11 00:05:41 +0100
commit68afc74b03f83bb072944911c15af60433280ace (patch)
tree1217a5cbfa75c01d35e8e0d743da379725816bf2 /src/Exceptions/Handlers
parentb878740f80ce7cfe2a0bc53956e3f7e4e0aa2f78 (diff)
Formatting to follow PSR-12
Diffstat (limited to 'src/Exceptions/Handlers')
-rw-r--r--src/Exceptions/Handlers/Legacy.php2
-rw-r--r--src/Exceptions/Handlers/LegacyDevelopment.php6
2 files changed, 6 insertions, 2 deletions
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 <del>un</del>expected error occurred, a team of untrained monkeys has been dispatched to deal with it.';
+ echo 'An <del>un</del>expected 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 '<pre style="background-color:#333;color:#ccc;z-index:1000;position:fixed;bottom:1em;padding:1em;width:97%;max-height: 90%;overflow-y:auto;">';
+ echo sprintf(
+ '<pre style="%s">',
+ '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(),