Code Duplication    Length = 3-3 lines in 2 locations

src/Simple.php 2 locations

@@ 531-533 (lines=3) @@
528
        $status = $this->getRegistryProcessor()->getAttribute($this->getSerial());
529
530
        // query whether or not the configured source directory is available
531
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
532
            throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir));
533
        }
534
535
        // initialize the file iterator on source directory
536
        $fileIterator = new \FilesystemIterator($sourceDir);
@@ 669-671 (lines=3) @@
666
        $status = $this->getRegistryProcessor()->getAttribute($this->getSerial());
667
668
        // query whether or not the configured source directory is available
669
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
670
            throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir));
671
        }
672
673
        // init file iterator on source directory
674
        $fileIterator = new \FilesystemIterator($sourceDir);