Passed
Push — master ( c33af3...ef3906 )
by Felipe
06:08 queued 04:28
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/Helper/DebugHelper.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
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.