@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | public function __construct() |
21 | 21 | { |
22 | 22 | register_shutdown_function($this->handleFatalError()); |
23 | - if(getenv('APP_ENV') !== 'testing') { |
|
23 | + if (getenv('APP_ENV') !== 'testing') { |
|
24 | 24 | set_error_handler($this->setErrorHandler()); |
25 | 25 | set_exception_handler($this->setExceptionHandler()); |
26 | 26 | } |
27 | 27 | |
28 | - $this->register('Exception', function (Exception $exception) { |
|
28 | + $this->register('Exception', function(Exception $exception) { |
|
29 | 29 | $handler = new ExceptionHandler($exception); |
30 | 30 | $handler->display(); |
31 | 31 | }); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | { |
53 | 53 | try { |
54 | 54 | |
55 | - $handlers = array_filter($this->handlers, function ($handler) use ($exception) { |
|
55 | + $handlers = array_filter($this->handlers, function($handler) use ($exception) { |
|
56 | 56 | return $exception instanceof $handler[0]; |
57 | 57 | }); |
58 | 58 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | protected function setExceptionHandler() |
77 | 77 | { |
78 | - return function ($exception) { |
|
78 | + return function($exception) { |
|
79 | 79 | $this->handle($exception); |
80 | 80 | }; |
81 | 81 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function setErrorHandler() |
88 | 88 | { |
89 | - return function ($severity, $message, $file, $line) { |
|
89 | + return function($severity, $message, $file, $line) { |
|
90 | 90 | if (error_reporting() && $severity) { |
91 | 91 | throw new ErrorException($message, 0, $severity, $file, $line); |
92 | 92 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | protected function handleFatalError() |
103 | 103 | { |
104 | - return function () { |
|
104 | + return function() { |
|
105 | 105 | $error = error_get_last(); |
106 | 106 | |
107 | 107 | if ($error && $error['type'] === E_ERROR) { |