Code Duplication    Length = 10-10 lines in 2 locations

src/Application/Output/JunitHelper.php 1 location

@@ 111-120 (lines=10) @@
108
     * @param  string  $subKey
109
     * @return integer
110
     */
111
    private static function sumArraysKey($key, array $arrays, $subKey = null)
112
    {
113
        $sum = 0;
114
115
        foreach ($arrays as $array) {
116
            $sum += ($subKey) ? $array[$key][$subKey] : $array[$key];
117
        }
118
119
        return $sum;
120
    }
121
122
    /**
123
     * @param  \DOMElement $element

src/Application/Output/HtmlReportHelper.php 1 location

@@ 153-162 (lines=10) @@
150
     * @param  string  $subKey
151
     * @return integer
152
     */
153
    private static function sumArraysKey($key, array $arrays, $subKey = null)
154
    {
155
        $sum = 0;
156
157
        foreach ($arrays as $array) {
158
            $sum += ($subKey) ? $array[$key][$subKey] : $array[$key];
159
        }
160
161
        return $sum;
162
    }
163
164
    private static function sanitizeTags($string)
165
    {