Code Duplication    Length = 15-15 lines in 2 locations

Command/CheckMissingCommand.php 1 location

@@ 114-128 (lines=15) @@
111
        return 0;
112
    }
113
114
    private function getConfiguredFinder(Configuration $config): Finder
115
    {
116
        $finder = new Finder();
117
        $finder->in($config->getDirs());
118
119
        foreach ($config->getExcludedDirs() as $exclude) {
120
            $finder->notPath($exclude);
121
        }
122
123
        foreach ($config->getExcludedNames() as $exclude) {
124
            $finder->notName($exclude);
125
        }
126
127
        return $finder;
128
    }
129
130
    private function countEmptyTranslations(MessageCatalogueInterface $catalogue): int
131
    {

Command/ExtractCommand.php 1 location

@@ 139-153 (lines=15) @@
136
        return 0;
137
    }
138
139
    private function getConfiguredFinder(Configuration $config): Finder
140
    {
141
        $finder = new Finder();
142
        $finder->in($config->getDirs());
143
144
        foreach ($config->getExcludedDirs() as $exclude) {
145
            $finder->notPath($exclude);
146
        }
147
148
        foreach ($config->getExcludedNames() as $exclude) {
149
            $finder->notName($exclude);
150
        }
151
152
        return $finder;
153
    }
154
}
155