Code Duplication    Length = 6-6 lines in 2 locations

src/Weew/Console/Console.php 2 locations

@@ 398-403 (lines=6) @@
395
            array_unshift($args, $this->getDefaultCommandName());
396
            $this->parseArgs($args);
397
        } catch (Exception $ex) {
398
            if ($this->getCatchErrors()) {
399
                $widget = new ExceptionWidget($this->input, $this->output);
400
                $widget->render($ex);
401
            } else {
402
                throw $ex;
403
            }
404
        }
405
    }
406
@@ 434-439 (lines=6) @@
431
                $command->getHandler(), $input, $output, $this
432
            );
433
        } catch (Exception $ex) {
434
            if ($this->getCatchErrors()) {
435
                $widget = new ExceptionWidget($this->input, $this->output);
436
                $widget->render($ex);
437
            } else {
438
                throw $ex;
439
            }
440
        }
441
    }
442