Code Duplication    Length = 8-8 lines in 2 locations

src/Application/Output/HtmlReportHelper.php 2 locations

@@ 126-133 (lines=8) @@
123
    {
124
        $testCase = '';
125
126
        if ($test['failures']['sum'] > 0) {
127
            foreach ($test['failures']['list']  as $failure) {
128
                $testCase .= '<tr class="failure">
129
                    <td>'.$failure['type'].'</td>
130
                    <td>'.self::sanitizeTags($failure['message']).'</td>
131
                </tr>';
132
            }
133
        }
134
135
        if ($test['errors']['sum'] > 0) {
136
            foreach ($test['errors']['list'] as $error) {
@@ 135-142 (lines=8) @@
132
            }
133
        }
134
135
        if ($test['errors']['sum'] > 0) {
136
            foreach ($test['errors']['list'] as $error) {
137
                $testCase .= '<tr class="error">
138
                    <td>'.$error['type'].'</td>
139
                    <td>'.self::sanitizeTags($error['message']).'</td>
140
                </tr>';
141
            }
142
        }
143
144
        return $testCase;
145
    }