Code Duplication    Length = 14-14 lines in 2 locations

src/Loaders/Filters/OkFileFilter.php 1 location

@@ 252-265 (lines=14) @@
249
     *
250
     * @return array The array with the pattern values
251
     */
252
    protected function resolvePatternValues() : array
253
    {
254
255
        // initialize the array
256
        $elements = array();
257
258
        // prepare the pattern values
259
        foreach ($this->getPatternKeys() as $element) {
260
            $elements[] = sprintf('(?<%s>%s)', $element, $this->resolvePatternValue($element));
261
        }
262
263
        // return the pattern values
264
        return $elements;
265
    }
266
267
    /**
268
     * Prepares and returns the pattern for the regex to load the files from the

src/Loaders/ProposedOkFilenameLoader.php 1 location

@@ 295-308 (lines=14) @@
292
     * @todo Refactorig required, because of duplicate method
293
     * @see \TechDivision\Import\Loaders\Filters\OkFileFilter::resolvePatternValues()
294
     */
295
    protected function resolvePatternValues() : array
296
    {
297
298
        // initialize the array
299
        $elements = array();
300
301
        // prepare the pattern values
302
        foreach ($this->getPatternKeys() as $element) {
303
            $elements[] = sprintf('(?<%s>%s)', $element, $this->resolvePatternValue($element));
304
        }
305
306
        // return the pattern values
307
        return $elements;
308
    }
309
310
    /**
311
     * Prepares and returns the pattern for the regex to load the files from the