Code Duplication    Length = 7-8 lines in 2 locations

benchmark/ViewBench.php 2 locations

@@ 42-48 (lines=7) @@
39
    /**
40
     * @Subject()
41
     */
42
    public function create_object_view()
43
    {
44
        $article = new Article();
45
        $article->title = 'Hello';
46
        $article->image = new Image('/path/to/image.jpg', 100, 100, 'image/jpeg');
47
        $this->factory->create(ObjectType::class, $article, []);
48
    }
49
50
    /**
51
     * @Subject()
@@ 53-60 (lines=8) @@
50
    /**
51
     * @Subject()
52
     */
53
    public function create_object_view_and_iterate()
54
    {
55
        $article = new Article();
56
        $article->title = 'Hello';
57
        $article->image = new Image('/path/to/image.jpg', 100, 100, 'image/jpeg');
58
        $view = $this->factory->create(ObjectType::class, $article, []);
59
        iterator_to_array($view);
60
    }
61
}
62