Code Duplication    Length = 11-11 lines in 3 locations

src/Weew/Console/Console.php 3 locations

@@ 566-576 (lines=11) @@
563
    /**
564
     * @return ICommand[]
565
     */
566
    protected function getGlobalHiddenCommands() {
567
        $commands = [];
568
569
        foreach ($this->getCommands() as $command) {
570
            if ($command->isGlobal() && $command->isHidden()) {
571
                $commands[] = $command;
572
            }
573
        }
574
575
        return $commands;
576
    }
577
578
    /**
579
     * @return ICommand[]
@@ 581-591 (lines=11) @@
578
    /**
579
     * @return ICommand[]
580
     */
581
    protected function getGlobalNotHiddenCommands() {
582
        $commands = [];
583
584
        foreach ($this->getCommands() as $command) {
585
            if ($command->isGlobal() && ! $command->isHidden()) {
586
                $commands[] = $command;
587
            }
588
        }
589
590
        return $commands;
591
    }
592
593
    /**
594
     * @return ICommand[]
@@ 596-606 (lines=11) @@
593
    /**
594
     * @return ICommand[]
595
     */
596
    protected function getNotGlobalCommands() {
597
        $commands = [];
598
599
        foreach ($this->getCommands() as $command) {
600
            if ( ! $command->isGlobal()) {
601
                $commands[] = $command;
602
            }
603
        }
604
605
        return $commands;
606
    }
607
}
608