@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $error = error_get_last(); |
34 | 34 | if (isset($error['type'], $error['message'], $error['file'], $error['line'])) { |
35 | 35 | errorHandler($error['type'],$error['message'],$error['file'],$error['line']); |
36 | - }elseif ($error['type'] == 1) { |
|
36 | + } elseif ($error['type'] == 1) { |
|
37 | 37 | dump($error); |
38 | 38 | } |
39 | 39 | } |
@@ -85,7 +85,9 @@ discard block |
||
85 | 85 | * @param string $httpHeader |
86 | 86 | */ |
87 | 87 | function renderError ($message='', $file='', $line='', $code=0, $trace=array(), $httpHeader = 'HTTP/1.0 500 Internal Server Error') { |
88 | - if (ob_get_contents()) ob_end_clean(); |
|
88 | + if (ob_get_contents()) { |
|
89 | + ob_end_clean(); |
|
90 | + } |
|
89 | 91 | |
90 | 92 | if (canShowError()) { |
91 | 93 | $file_lines = file_exists($file) ? file($file) : array(); |
@@ -153,7 +155,9 @@ discard block |
||
153 | 155 | |
154 | 156 | function renderCliException($message, $file, $line, $trace, $lines) |
155 | 157 | { |
156 | - if (ob_get_contents()) ob_end_clean(); |
|
158 | + if (ob_get_contents()) { |
|
159 | + ob_end_clean(); |
|
160 | + } |
|
157 | 161 | include(realpath(__DIR__) . '/errorviewcli.php'); |
158 | 162 | exit; |
159 | 163 | } |
160 | 164 | \ No newline at end of file |