Completed
Push — master ( ca0f65...65b14f )
by Kamil
03:15 queued 01:50
created
src/Throwable/Throwable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param \Error|\Exception $ex
37 37
      * @param string[] &$data
38 38
      * @param int $offset
39
-     * @return mixed
39
+     * @return string[]
40 40
      */
41 41
     public static function getThrowableStack($ex, &$data = [], $offset = 0)
42 42
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $trace = $ex->getTrace();
82 82
         $file  = str_replace('.php', '', basename($ex->getFile()));
83 83
         $elements = [
84
-            '[throwable] ' . get_class($ex) . '(...) in ' . $file .':' . $ex->getLine()
84
+            '[throwable] ' . get_class($ex) . '(...) in ' . $file . ':' . $ex->getLine()
85 85
         ];
86 86
 
87 87
         foreach ($trace as $currentTrack)
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         }
91 91
         $elements[] = '[main]';
92 92
 
93
-        array_splice($elements, -$offset+1, $offset);
93
+        array_splice($elements, -$offset + 1, $offset);
94 94
 
95 95
         return $elements;
96 96
     }
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
      */
102 102
     protected static function parseTraceElement($element)
103 103
     {
104
-        $element['class']    = isset($element['class'])    ? $element['class']    : 'Undefined';
105
-        $element['file']     = isset($element['file'])     ? $element['file']     : 'unknown';
106
-        $element['line']     = isset($element['line'])     ? $element['line']     : 0;
107
-        $element['type']     = isset($element['type'])     ? $element['type']     : '';
104
+        $element['class']    = isset($element['class']) ? $element['class'] : 'Undefined';
105
+        $element['file']     = isset($element['file']) ? $element['file'] : 'unknown';
106
+        $element['line']     = isset($element['line']) ? $element['line'] : 0;
107
+        $element['type']     = isset($element['type']) ? $element['type'] : '';
108 108
         $element['function'] = isset($element['function']) ? $element['function'] : '::undefined';
109
-        $element['args']     = isset($element['args'])     ? $element['args']     : [];
109
+        $element['args']     = isset($element['args']) ? $element['args'] : [];
110 110
 
111 111
         return implode('', [
112 112
             '[call] ',
Please login to merge, or discard this patch.
src/Throwable/ErrorHandler.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -100,55 +100,55 @@
 block discarded – undo
100 100
      */
101 101
     private static function getSystemError($type)
102 102
     {
103
-        switch($type)
103
+        switch ($type)
104 104
         {
105 105
             case E_ERROR: // 1 //
106
-                return [ 'E_ERROR',             static::E_ERROR ];
106
+                return ['E_ERROR', static::E_ERROR];
107 107
 
108 108
             case E_WARNING: // 2 //
109
-                return [ 'E_WARNING',           static::E_WARNING ];
109
+                return ['E_WARNING', static::E_WARNING];
110 110
 
111 111
             case E_PARSE: // 4 //
112
-                return [ 'E_PARSE',             static::E_ERROR ];
112
+                return ['E_PARSE', static::E_ERROR];
113 113
 
114 114
             case E_NOTICE: // 8 //
115
-                return [ 'E_NOTICE',            static::E_NOTICE ];
115
+                return ['E_NOTICE', static::E_NOTICE];
116 116
 
117 117
             case E_CORE_ERROR: // 16 //
118
-                return [ 'E_CORE_ERROR',        static::E_ERROR ];
118
+                return ['E_CORE_ERROR', static::E_ERROR];
119 119
 
120 120
             case E_CORE_WARNING: // 32 //
121
-                return [ 'E_CORE_WARNING',      static::E_WARNING ];
121
+                return ['E_CORE_WARNING', static::E_WARNING];
122 122
 
123 123
             case E_COMPILE_ERROR: // 64 //
124
-                return [ 'E_COMPILE_ERROR',     static::E_ERROR ];
124
+                return ['E_COMPILE_ERROR', static::E_ERROR];
125 125
 
126 126
             case E_COMPILE_WARNING: // 128 //
127
-                return [ 'E_COMPILE_WARNING',   static::E_WARNING ];
127
+                return ['E_COMPILE_WARNING', static::E_WARNING];
128 128
 
129 129
             case E_USER_ERROR: // 256 //
130
-                return [ 'E_USER_ERROR',        static::E_ERROR ];
130
+                return ['E_USER_ERROR', static::E_ERROR];
131 131
 
132 132
             case E_USER_WARNING: // 512 //
133
-                return [ 'E_USER_WARNING',      static::E_WARNING ];
133
+                return ['E_USER_WARNING', static::E_WARNING];
134 134
 
135 135
             case E_USER_NOTICE: // 1024 //
136
-                return [ 'E_USER_NOTICE',       static::E_NOTICE ];
136
+                return ['E_USER_NOTICE', static::E_NOTICE];
137 137
 
138 138
             case E_STRICT: // 2048 //
139
-                return [ 'E_STRICT',            static::E_ERROR ];
139
+                return ['E_STRICT', static::E_ERROR];
140 140
 
141 141
             case E_RECOVERABLE_ERROR: // 4096 //
142
-                return [ 'E_RECOVERABLE_ERROR', static::E_WARNING ];
142
+                return ['E_RECOVERABLE_ERROR', static::E_WARNING];
143 143
 
144 144
             case E_DEPRECATED: // 8192 //
145
-                return [ 'E_DEPRECATED',        static::E_NOTICE ];
145
+                return ['E_DEPRECATED', static::E_NOTICE];
146 146
 
147 147
             case E_USER_DEPRECATED: // 16384 //
148
-                return [ 'E_USER_DEPRECATED',   static::E_NOTICE ];
148
+                return ['E_USER_DEPRECATED', static::E_NOTICE];
149 149
 
150 150
             default:
151
-                return [ 'E_UNKNOWN',           static::E_UNSUPPORTED ];
151
+                return ['E_UNKNOWN', static::E_UNSUPPORTED];
152 152
         }
153 153
     }
154 154
 }
Please login to merge, or discard this patch.
src/Throwable/Exception/SystemException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,5 @@
 block discarded – undo
5 5
 use Dazzle\Throwable\Exception;
6 6
 
7 7
 class SystemException extends Exception
8
-{}
8
+{
9
+}
Please login to merge, or discard this patch.
src/Throwable/Exception/System/TaskIncompleteException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,5 @@
 block discarded – undo
5 5
 use Dazzle\Throwable\Exception\SystemException;
6 6
 
7 7
 class TaskIncompleteException extends SystemException
8
-{}
8
+{
9
+}
Please login to merge, or discard this patch.
src/Throwable/Exception/System/ChildUnresponsiveException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,5 @@
 block discarded – undo
5 5
 use Dazzle\Throwable\Exception\SystemException;
6 6
 
7 7
 class ChildUnresponsiveException extends SystemException
8
-{}
8
+{
9
+}
Please login to merge, or discard this patch.
src/Throwable/Exception/System/ParentUnresponsiveException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,5 @@
 block discarded – undo
5 5
 use Dazzle\Throwable\Exception\SystemException;
6 6
 
7 7
 class ParentUnresponsiveException extends SystemException
8
-{}
8
+{
9
+}
Please login to merge, or discard this patch.
src/Throwable/Exception/LogicException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,5 @@
 block discarded – undo
5 5
 use Dazzle\Throwable\Exception;
6 6
 
7 7
 class LogicException extends Exception
8
-{}
8
+{
9
+}
Please login to merge, or discard this patch.
src/Throwable/Exception/Runtime/TimeoutException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,5 @@
 block discarded – undo
5 5
 use Dazzle\Throwable\Exception\RuntimeException;
6 6
 
7 7
 class TimeoutException extends RuntimeException
8
-{}
8
+{
9
+}
Please login to merge, or discard this patch.
src/Throwable/Exception/Runtime/WriteException.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,4 +5,5 @@
 block discarded – undo
5 5
 use Dazzle\Throwable\Exception\RuntimeException;
6 6
 
7 7
 class WriteException extends RuntimeException
8
-{}
8
+{
9
+}
Please login to merge, or discard this patch.