Code Duplication    Length = 11-11 lines in 2 locations

src/Loaders/ProposedOkFilenameLoader.php 2 locations

@@ 394-404 (lines=11) @@
391
        $patternKeys = $this->getPatternKeys();
392
393
        // prepare the .OK filenames based on the found CSV file information
394
        for ($i = 1; $i <= sizeof($patternKeys); $i++) {
395
            // initialize the array for the pattern that has to used to load
396
            // the propsed .OK file for
397
            $keys = array();
398
            // load the parts from the matches
399
            for ($z = 0; $z < $i; $z++) {
400
                $keys[] = $patternKeys[$z];
401
            }
402
            // merge the proposed .OK filenames for the passed keys into the array
403
            $okFilenames = array_merge_recursive($okFilenames, $this->proposedOkFilenamesByKeys($keys));
404
        }
405
406
        // prepare and return the pattern for the OK file
407
        return $okFilenames;
@@ 481-491 (lines=11) @@
478
        $patternKeys = $this->getPatternKeys();
479
480
        // prepare the .OK filenames based on the found CSV file information
481
        for ($i = 1; $i <= sizeof($patternKeys); $i++) {
482
            // initialize the array for the pattern that has to used to load
483
            // the propsed .OK file for
484
            $keys = array();
485
            // load the parts from the matches
486
            for ($z = 0; $z < $i; $z++) {
487
                $keys[] = $patternKeys[$z];
488
            }
489
            // merge the proposed .OK filenames for the passed keys into the array
490
            $okFilenames = array_merge_recursive($okFilenames, $this->proposedOkFilenamesByKeys($keys));
491
        }
492
493
        // finally, we filter and sort them with the configured behaviour
494
        $this->getFilterImpl()->filter($okFilenames);