Code Duplication    Length = 7-7 lines in 3 locations

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

src/Command/ImportCommandAbstract.php 2 locations

@@ 88-94 (lines=7) @@
85
86
        if (is_null($inputFile)) {
87
            // normal way - file arguments..
88
            foreach ($files as $file) {
89
                if (is_file($file)) {
90
                    $finder->in(dirname($file))->name(basename($file));
91
                } else {
92
                    $finder->in($file);
93
                }
94
            }
95
        } else {
96
            // file list via input file
97
            if (!file_exists($inputFile)) {
@@ 113-119 (lines=7) @@
110
                }
111
            );
112
113
            foreach ($fileList as $file) {
114
                if (is_file($file)) {
115
                    $finder->in(dirname($file))->name(basename($file));
116
                } else {
117
                    $finder->in($file);
118
                }
119
            }
120
        }
121
122
        $finder->ignoreDotFiles(true)->filter($filter);