@@ -201,9 +201,9 @@ discard block |
||
201 | 201 | $handler = new ConsoleHandler(); |
202 | 202 | $handler->setColorsSupport(true); |
203 | 203 | |
204 | - try { |
|
204 | + try{ |
|
205 | 205 | $this->makeException(); |
206 | - } catch (\Throwable $e) { |
|
206 | + }catch (\Throwable $e){ |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | $result = $handler->renderException($e, HandlerInterface::VERBOSITY_DEBUG); |
@@ -217,9 +217,9 @@ discard block |
||
217 | 217 | { |
218 | 218 | $handler = new PlainHandler(); |
219 | 219 | |
220 | - try { |
|
220 | + try{ |
|
221 | 221 | $this->makeException(); |
222 | - } catch (\Throwable $e) { |
|
222 | + }catch (\Throwable $e){ |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | $result = $handler->renderException($e, HandlerInterface::VERBOSITY_DEBUG); |
@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | { |
233 | 233 | $handler = new JsonHandler(); |
234 | 234 | |
235 | - try { |
|
235 | + try{ |
|
236 | 236 | $this->makeException(); |
237 | - } catch (\Throwable $e) { |
|
237 | + }catch (\Throwable $e){ |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | $result = $handler->renderException($e, HandlerInterface::VERBOSITY_DEBUG); |
@@ -249,9 +249,9 @@ discard block |
||
249 | 249 | |
250 | 250 | $handler = new HtmlHandler(HtmlHandler::DEFAULT); |
251 | 251 | |
252 | - try { |
|
252 | + try{ |
|
253 | 253 | $this->makeException(); |
254 | - } catch (\Throwable $e) { |
|
254 | + }catch (\Throwable $e){ |
|
255 | 255 | } |
256 | 256 | |
257 | 257 | $result = $handler->renderException($e, HandlerInterface::VERBOSITY_DEBUG); |
@@ -267,9 +267,9 @@ discard block |
||
267 | 267 | |
268 | 268 | $handler = new HtmlHandler(HtmlHandler::INVERTED); |
269 | 269 | |
270 | - try { |
|
270 | + try{ |
|
271 | 271 | $this->makeException(); |
272 | - } catch (\Throwable $e) { |
|
272 | + }catch (\Throwable $e){ |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | $result = $handler->renderException($e, HandlerInterface::VERBOSITY_DEBUG); |
@@ -281,13 +281,13 @@ discard block |
||
281 | 281 | |
282 | 282 | public function makeException(): void |
283 | 283 | { |
284 | - try { |
|
284 | + try{ |
|
285 | 285 | $f = function (): void { |
286 | 286 | throw new \RuntimeException('error'); |
287 | 287 | }; |
288 | 288 | |
289 | 289 | $f(); |
290 | - } catch (\Throwable $e) { |
|
290 | + }catch (\Throwable $e){ |
|
291 | 291 | throw new \LogicException('error', 0, $e); |
292 | 292 | } |
293 | 293 | } |