Code Duplication    Length = 8-8 lines in 2 locations

api/tests/ModelsTest.php 2 locations

@@ 152-159 (lines=8) @@
149
        $this->assertNotEmpty($result);
150
        $this->assertGreaterThanOrEqual(0, $result['goal_away']);
151
        $this->assertGreaterThanOrEqual(0, $result['goal_home']);
152
        if ($result['goal_home'] > 0) {
153
            $this->assertNotEmpty($result['info']['scorers']['home']);
154
            foreach ($result['info']['scorers']['home'] as $scorerHome) {
155
                $this->assertEquals($scorerHome->team_id, $teamHome);
156
            }
157
        } else {
158
            $this->assertEmpty($result['info']['scorers']['home']);
159
        }
160
        if ($result['goal_away'] > 0) {
161
            $this->assertNotEmpty($result['info']['scorers']['away']);
162
            foreach ($result['info']['scorers']['away'] as $scorerAway) {
@@ 160-167 (lines=8) @@
157
        } else {
158
            $this->assertEmpty($result['info']['scorers']['home']);
159
        }
160
        if ($result['goal_away'] > 0) {
161
            $this->assertNotEmpty($result['info']['scorers']['away']);
162
            foreach ($result['info']['scorers']['away'] as $scorerAway) {
163
                $this->assertEquals($scorerAway->team_id, $teamAway);
164
            }
165
        } else {
166
            $this->assertEmpty($result['info']['scorers']['away']);
167
        }
168
        if ($result['goal_home'] == $result['goal_away']) {
169
            $this->assertTrue($result['info']['is_draw']);
170
        } else {