Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 105-114 (lines=10) @@
102
    {
103
    }
104
105
    private function persistAndReloadArticle(Article $article)
106
    {
107
        $article->id = 'article';
108
        $this->entityManager->persist($article);
109
        $this->entityManager->flush();
110
111
        $this->entityManager->clear();
112
113
        return $this->entityManager->find(Article::class, 'article');
114
    }
115
}
116

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

@@ 236-245 (lines=10) @@
233
        $this->assertSame([12, 13, 14], $article->numbers);
234
    }
235
236
    private function persistAndReloadArticle(Article $article)
237
    {
238
        $article->id = '/test/article';
239
        $this->documentManager->persist($article);
240
        $this->documentManager->flush();
241
242
        $this->documentManager->clear();
243
244
        return $this->documentManager->find(Article::class, '/test/article');
245
    }
246
}
247