@@ -192,9 +192,9 @@ discard block |
||
192 | 192 | try { |
193 | 193 | $this->error = null; |
194 | 194 | $nextResponse = $next($request, $response); |
195 | - } catch(\Error $e) { |
|
195 | + } catch (\Error $e) { |
|
196 | 196 | $this->error = $e; |
197 | - } catch(\Exception $e) { |
|
197 | + } catch (\Exception $e) { |
|
198 | 198 | $this->error = $e; |
199 | 199 | } |
200 | 200 | |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | $this->logErrorTypes |= $errorTypes; |
242 | 242 | |
243 | 243 | $nonFatal = E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED; |
244 | - $unhandled = E_ERROR|E_PARSE|E_CORE_ERROR|E_COMPILE_ERROR; |
|
244 | + $unhandled = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR; |
|
245 | 245 | |
246 | 246 | if ($this->logErrorTypes & $nonFatal) { |
247 | 247 | $this->initErrorHandler(); |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | if (!$clearOutput) { |
265 | 265 | $this->onFatalError = $callback; |
266 | 266 | } else { |
267 | - $this->onFatalError = function($error) use ($callback) { |
|
267 | + $this->onFatalError = function ($error) use ($callback) { |
|
268 | 268 | $this->clearOutputBuffer(); |
269 | 269 | $callback($error); |
270 | 270 | }; |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | $this->reservedMemory = null; |
341 | 341 | |
342 | 342 | $err = $this->errorGetLast(); |
343 | - $unhandled = E_ERROR|E_PARSE|E_CORE_ERROR|E_COMPILE_ERROR; |
|
343 | + $unhandled = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR; |
|
344 | 344 | |
345 | 345 | if (!$err || !($err['type'] & $unhandled)) { |
346 | 346 | return; |