@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param \Throwable $exception |
35 | 35 | * @return int|null |
36 | 36 | */ |
37 | - public function __invoke(\Throwable $exception): ?int |
|
37 | + public function __invoke(\Throwable $exception): ? int |
|
38 | 38 | { |
39 | 39 | foreach ($this->handlers as $handler) { |
40 | 40 | $signal = $handler($exception); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param \Throwable $throwable |
35 | 35 | * @return int |
36 | 36 | */ |
37 | - public function __invoke(\Throwable $throwable): ?int |
|
37 | + public function __invoke(\Throwable $throwable): ? int |
|
38 | 38 | { |
39 | 39 | error_log( |
40 | 40 | ExceptionHelper::toJson($throwable), |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @param \Throwable $throwable |
18 | 18 | * @return int Exit code |
19 | 19 | */ |
20 | - public function __invoke(\Throwable $throwable): ?int; |
|
20 | + public function __invoke(\Throwable $throwable): ? int; |
|
21 | 21 | } |
22 | 22 | \ No newline at end of file |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * @param \Throwable $throwable |
30 | 30 | * @return int|null |
31 | 31 | */ |
32 | - public function __invoke(\Throwable $throwable): ?int |
|
32 | + public function __invoke(\Throwable $throwable): ? int |
|
33 | 33 | { |
34 | 34 | // @TODO header content-type |
35 | 35 | // @TODO json_encode body |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param \Throwable $throwable |
47 | 47 | * @return int|null |
48 | 48 | */ |
49 | - public function __invoke(\Throwable $throwable): ?int |
|
49 | + public function __invoke(\Throwable $throwable): ? int |
|
50 | 50 | { |
51 | 51 | if (!headers_sent()) { |
52 | 52 | header_remove('Content-Type'); |
@@ -19,11 +19,10 @@ |
||
19 | 19 | * @param \Throwable $throwable |
20 | 20 | * @return int |
21 | 21 | */ |
22 | - public function __invoke(\Throwable $throwable): ?int |
|
22 | + public function __invoke(\Throwable $throwable): ? int |
|
23 | 23 | { |
24 | 24 | echo DebugHelper::dump($throwable, $this->pretty); |
25 | 25 | |
26 | - return $this->exit ? $throwable->getCode() : |
|
27 | - null; |
|
26 | + return $this->exit ? $throwable->getCode() : null; |
|
28 | 27 | } |
29 | 28 | } |
30 | 29 | \ No newline at end of file |
@@ -19,11 +19,10 @@ |
||
19 | 19 | * @param \Throwable $throwable |
20 | 20 | * @return int |
21 | 21 | */ |
22 | - public function __invoke(\Throwable $throwable): ?int |
|
22 | + public function __invoke(\Throwable $throwable): ? int |
|
23 | 23 | { |
24 | 24 | echo DebugHelper::export($throwable, $this->pretty); |
25 | 25 | |
26 | - return $this->exit ? $throwable->getCode() : |
|
27 | - null; |
|
26 | + return $this->exit ? $throwable->getCode() : null; |
|
28 | 27 | } |
29 | 28 | } |
30 | 29 | \ No newline at end of file |
@@ -43,8 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | $print = print_r($mixed, true); |
45 | 45 | |
46 | - return $pretty ? self::pre($print) : |
|
47 | - $print; |
|
46 | + return $pretty ? self::pre($print) : $print; |
|
48 | 47 | } |
49 | 48 | |
50 | 49 | /** |
@@ -56,8 +55,7 @@ discard block |
||
56 | 55 | { |
57 | 56 | $exported = var_export($expression, true); |
58 | 57 | |
59 | - return $pretty ? self::pre($exported) : |
|
60 | - $exported; |
|
58 | + return $pretty ? self::pre($exported) : $exported; |
|
61 | 59 | } |
62 | 60 | |
63 | 61 | /** |
@@ -76,7 +74,6 @@ discard block |
||
76 | 74 | |
77 | 75 | $dump = ob_get_clean(); |
78 | 76 | |
79 | - return $pretty ? self::pre($dump) : |
|
80 | - $dump; |
|
77 | + return $pretty ? self::pre($dump) : $dump; |
|
81 | 78 | } |
82 | 79 | } |
83 | 80 | \ No newline at end of file |
@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | $exception = new \ErrorException( |
144 | 144 | $error['message'], $error['type'], $error['type'], |
145 | - $error['file'], $error['line'] |
|
145 | + $error['file'], $error['line'] |
|
146 | 146 | ); |
147 | 147 | |
148 | 148 | $this->handleException($exception); |