Code Duplication    Length = 6-10 lines in 2 locations

src/Psalm/Config/FileFilter.php 2 locations

@@ 129-138 (lines=10) @@
126
                        glob($prospective_directory_path, GLOB_ONLYDIR)
127
                    );
128
129
                    if (empty($globs)) {
130
                        if ($allow_missing_files) {
131
                            continue;
132
                        }
133
134
                        throw new ConfigException(
135
                            'Could not resolve config path to ' . $base_dir
136
                                . DIRECTORY_SEPARATOR . (string)$directory['name']
137
                        );
138
                    }
139
140
                    foreach ($globs as $glob_index => $directory_path) {
141
                        if (!$directory_path) {
@@ 243-248 (lines=6) @@
240
                        )
241
                    );
242
243
                    if (empty($globs)) {
244
                        throw new ConfigException(
245
                            'Could not resolve config path to ' . $base_dir . DIRECTORY_SEPARATOR .
246
                                (string)$file['name']
247
                        );
248
                    }
249
250
                    foreach ($globs as $glob_index => $file_path) {
251
                        if (!$file_path) {