@@ -100,55 +100,55 @@ |
||
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 | } |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception; |
6 | 6 | |
7 | 7 | class SystemException extends Exception |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception\SystemException; |
6 | 6 | |
7 | 7 | class TaskIncompleteException extends SystemException |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception\SystemException; |
6 | 6 | |
7 | 7 | class ChildUnresponsiveException extends SystemException |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception\SystemException; |
6 | 6 | |
7 | 7 | class ParentUnresponsiveException extends SystemException |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception; |
6 | 6 | |
7 | 7 | class LogicException extends Exception |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception\RuntimeException; |
6 | 6 | |
7 | 7 | class TimeoutException extends RuntimeException |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception\RuntimeException; |
6 | 6 | |
7 | 7 | class WriteException extends RuntimeException |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Dazzle\Throwable\Exception\RuntimeException; |
6 | 6 | |
7 | 7 | class ReadException extends RuntimeException |
8 | -{} |
|
8 | +{ |
|
9 | +} |