Code Duplication    Length = 3-3 lines in 2 locations

src/Simple.php 2 locations

@@ 419-421 (lines=3) @@
416
        $status = $this->getRegistryProcessor()->getAttribute($this->getSerial());
417
418
        // query whether or not the configured source directory is available
419
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
420
            throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir));
421
        }
422
423
        // initialize the file iterator on source directory
424
        $fileIterator = new \FilesystemIterator($sourceDir);
@@ 503-505 (lines=3) @@
500
        $status = $this->getRegistryProcessor()->getAttribute($this->getSerial());
501
502
        // query whether or not the configured source directory is available
503
        if (!is_dir($sourceDir = $status[RegistryKeys::SOURCE_DIRECTORY])) {
504
            throw new \Exception(sprintf('Configured source directory %s is not available!', $sourceDir));
505
        }
506
507
        // init file iterator on source directory
508
        $fileIterator = new \FilesystemIterator($sourceDir);