Code Duplication    Length = 3-3 lines in 2 locations

src/lib/Zikula/Bundle/CoreBundle/Tests/Translation/JsFileExtractorTest.php 1 location

@@ 57-59 (lines=3) @@
54
55
    protected function extract($file, FileVisitorInterface $extractor = null)
56
    {
57
        if (!is_file($file = __DIR__ . '/Fixture/' . $file)) {
58
            throw new \RuntimeException(sprintf('The file "%s" does not exist.', $file));
59
        }
60
        $file = new \SplFileInfo($file);
61
62
        if (null === $extractor) {

src/lib/Zikula/Bundle/CoreBundle/Tests/Translation/PhpFileExtractorTest.php 1 location

@@ 66-68 (lines=3) @@
63
64
    protected function extract($file, FileVisitorInterface $extractor = null)
65
    {
66
        if (!is_file($file = __DIR__ . '/Fixture/' . $file)) {
67
            throw new \RuntimeException(sprintf('The file "%s" does not exist.', $file));
68
        }
69
        $file = new \SplFileInfo($file);
70
71
        if (null === $extractor) {