Code Duplication    Length = 6-6 lines in 2 locations

src/Weew/Console/Console.php 2 locations

@@ 375-380 (lines=6) @@
372
            array_unshift($args, $this->getDefaultCommandName());
373
            $this->parseArgs($args);
374
        } catch (Exception $ex) {
375
            if ($this->getCatchErrors()) {
376
                $widget = new ExceptionWidget($this->input, $this->output);
377
                $widget->render($ex);
378
            } else {
379
                throw $ex;
380
            }
381
        }
382
    }
383
@@ 409-414 (lines=6) @@
406
                $command->getHandler(), $input, $output, $this
407
            );
408
        } catch (Exception $ex) {
409
            if ($this->getCatchErrors()) {
410
                $widget = new ExceptionWidget($this->input, $this->output);
411
                $widget->render($ex);
412
            } else {
413
                throw $ex;
414
            }
415
        }
416
    }
417