Passed
Push — master ( 5a643a...9821f5 )
by Felipe
02:02
created
src/Handler/CollectionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Handler/ErrorLogHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/Handler/HandlerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Handler/HtmlHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Handler/JsonHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Handler/VarDumpHandler.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,11 +19,10 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Handler/VarExportHandler.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,11 +19,10 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Handler/DebugHandler.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,11 +38,10 @@
 block discarded – undo
38 38
      * @param \Throwable $throwable
39 39
      * @return int|null
40 40
      */
41
-    public function __invoke(\Throwable $throwable): ?int
41
+    public function __invoke(\Throwable $throwable): ? int
42 42
     {
43 43
         DebugHelper::export($throwable, $this->pretty);
44 44
 
45
-        return $this->exit ? $throwable->getCode() :
46
-            null;
45
+        return $this->exit ? $throwable->getCode() : null;
47 46
     }
48 47
 }
49 48
\ No newline at end of file
Please login to merge, or discard this patch.