Code Duplication    Length = 11-11 lines in 2 locations

src/PhpSpreadsheet/Calculation/Statistical.php 2 locations

@@ 1929-1939 (lines=11) @@
1926
        if ($stdDev > 0) {
1927
            $count = $summer = 0;
1928
            // Loop through arguments
1929
            foreach ($aArgs as $k => $arg) {
1930
                if ((is_bool($arg)) &&
1931
                    (!Functions::isMatrixValue($k))) {
1932
                } else {
1933
                    // Is it a numeric value?
1934
                    if ((is_numeric($arg)) && (!is_string($arg))) {
1935
                        $summer += pow((($arg - $mean) / $stdDev), 4);
1936
                        ++$count;
1937
                    }
1938
                }
1939
            }
1940
1941
            // Return
1942
            if ($count > 3) {
@@ 2941-2951 (lines=11) @@
2938
2939
        $count = $summer = 0;
2940
        // Loop through arguments
2941
        foreach ($aArgs as $k => $arg) {
2942
            if ((is_bool($arg)) &&
2943
                (!Functions::isMatrixValue($k))) {
2944
            } else {
2945
                // Is it a numeric value?
2946
                if ((is_numeric($arg)) && (!is_string($arg))) {
2947
                    $summer += pow((($arg - $mean) / $stdDev), 3);
2948
                    ++$count;
2949
                }
2950
            }
2951
        }
2952
2953
        if ($count > 2) {
2954
            return $summer * ($count / (($count-1) * ($count-2)));