Code Duplication    Length = 3-3 lines in 2 locations

src/Simple.php 2 locations

@@ 628-630 (lines=3) @@
625
        $status = $this->getRegistryProcessor()->getAttribute($this->getSerial());
626
627
        // query whether or not the configured source directory is available
628
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
629
            throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir));
630
        }
631
632
        // initialize the file iterator on source directory
633
        $files = glob(sprintf('%s/*.csv', $sourceDir));
@@ 879-881 (lines=3) @@
876
        $status = $this->getRegistryProcessor()->getAttribute($this->getSerial());
877
878
        // query whether or not the configured source directory is available
879
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
880
            throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir));
881
        }
882
883
        // init file iterator on source directory
884
        $fileIterator = new \FilesystemIterator($sourceDir);