We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da1816c commit b0c8cf2Copy full SHA for b0c8cf2
system/exception.php
@@ -9,16 +9,16 @@
9
*/
10
11
use MyAAC\Exceptions\SensitiveException;
12
+use Whoops\Handler\PlainTextHandler;
13
+use Whoops\Handler\PrettyPageHandler;
14
+use Whoops\Run;
15
-if (class_exists(\Whoops\Run::class)) {
- $whoops = new \Whoops\Run;
- if(IS_CLI) {
16
- $whoops->pushHandler(new \Whoops\Handler\PlainTextHandler);
17
- }
18
- else {
19
- $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
20
+if (class_exists(Run::class)) {
+ $whoops = new Run;
+
+ $whoopsHandler = IS_CLI ? (new PlainTextHandler()) : (new PrettyPageHandler());
21
+ $whoops->pushHandler($whoopsHandler);
22
$whoops->register();
23
return;
24
}
0 commit comments