Code Duplication    Length = 7-7 lines in 2 locations

src/Command/ImportCommandAbstract.php 1 location

@@ 62-68 (lines=7) @@
59
            return true;
60
        };
61
62
        foreach ($files as $file) {
63
            if (is_file($file)) {
64
                $finder->in(dirname($file))->name(basename($file));
65
            } else {
66
                $finder->in($file);
67
            }
68
        }
69
70
        $finder->ignoreDotFiles(true)->filter($filter);
71

src/Command/ValidationCommand.php 1 location

@@ 101-107 (lines=7) @@
98
            return true;
99
        };
100
101
        foreach ($files as $file) {
102
            if (is_file($file)) {
103
                $finder->in(dirname($file))->name(basename($file));
104
            } else {
105
                $finder->in($file);
106
            }
107
        }
108
109
        $finder->ignoreDotFiles(true)->filter($filter);
110