Code Duplication    Length = 6-6 lines in 2 locations

tests/Controller/RestApiControllerTest.php 2 locations

@@ 43-48 (lines=6) @@
40
        ]);
41
42
        // Create cards
43
        for ($i = 1; $i < 5; $i++) {
44
            $this->card([
45
                'title'       => 'Card ' . $i,
46
                'category_id' => $category1->id,
47
            ]);
48
        }
49
50
        for ($i = 5; $i < 8; $i++) {
51
            $this->card([
@@ 50-55 (lines=6) @@
47
            ]);
48
        }
49
50
        for ($i = 5; $i < 8; $i++) {
51
            $this->card([
52
                'title'       => 'Card ' . $i,
53
                'category_id' => $category2->id,
54
            ]);
55
        }
56
57
        $this->card([
58
            'title'       => 'Card 9',