Code Duplication    Length = 6-8 lines in 2 locations

src/Gabrieljmj/Should/Console/Command/ExecuteTestsCommand.php 1 location

@@ 153-158 (lines=6) @@
150
        $input->hasArgument('test_name') ? $testName = $input->getArgument('test_name') : null;
151
        $reports = [];
152
153
        foreach ($this->runners as $runner) {
154
            if ($runner->canHandle($file)) {
155
                $runner->run($file);
156
                $reports[] = $runner->getReport();
157
            }
158
        }
159
160
        if ($input->getOption('colors')) {
161
            $this->template->colors();

src/Gabrieljmj/Should/Runner/JsonRunner.php 1 location

@@ 96-103 (lines=8) @@
93
    private function createReportFromAmbients(array $ambients){
94
        $reports = [];
95
96
        foreach ($ambients as $ambient) {
97
            foreach ($this->runners as $runner) {
98
                if ($runner->canHandle($ambient)) {
99
                    $runner->run($ambient);
100
                    $reports[] = $runner->getReport();
101
                }
102
            }
103
        }
104
105
        foreach ($reports as $report) {
106
            $this->combineReport($report);