Code Duplication    Length = 11-12 lines in 2 locations

bridge/doctrine-orm/tests/Functional/OrmAgentTest.php 1 location

@@ 48-58 (lines=11) @@
45
    }
46
47
48
    private function createPage($title = 'Hello World')
49
    {
50
        static $id = 1;
51
        $page = new Page();
52
        $page->id = $id++;
53
        $page->title = $title;
54
        $this->entityManager->persist($page);
55
        $this->entityManager->flush();
56
57
        return $page;
58
    }
59
}
60

bridge/doctrine-phpcr-odm/tests/Functional/PhpcrOdmAgentTest.php 1 location

@@ 56-67 (lines=12) @@
53
        $this->agent->setParent($page, $parent);
54
    }
55
56
    private function createPage($title = 'Hello World')
57
    {
58
        static $id = 1;
59
60
        $page = new Page();
61
        $page->title = $title;
62
        $page->path = '/test/page-' . $id++;
63
        $this->documentManager->persist($page);
64
        $this->documentManager->flush();
65
66
        return $page;
67
    }
68
}
69