From 8d9221e7119b6f3ecc9d97a2afc844b44ae6fef5 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Tue, 22 Mar 2016 16:56:25 +0100 Subject: [PATCH] #401 : Support for namespaces --- src/PhpSpreadsheet/Shared/trend/trend.php | 143 ---------------------- 1 file changed, 143 deletions(-) delete mode 100644 src/PhpSpreadsheet/Shared/trend/trend.php diff --git a/src/PhpSpreadsheet/Shared/trend/trend.php b/src/PhpSpreadsheet/Shared/trend/trend.php deleted file mode 100644 index 8979bf62..00000000 --- a/src/PhpSpreadsheet/Shared/trend/trend.php +++ /dev/null @@ -1,143 +0,0 @@ -getGoodnessOfFit(); - } - if ($trendType != self::TREND_BEST_FIT_NO_POLY) { - foreach (self::$trendTypePolynomialOrders as $trendMethod) { - $order = substr($trendMethod, -1); - $bestFit[$trendMethod] = new polynomialBestFit($order, $yValues, $xValues, $const); - if ($bestFit[$trendMethod]->getError()) { - unset($bestFit[$trendMethod]); - } else { - $bestFitValue[$trendMethod] = $bestFit[$trendMethod]->getGoodnessOfFit(); - } - } - } - // Determine which of our trend lines is the best fit, and then we return the instance of that trend class - arsort($bestFitValue); - $bestFitType = key($bestFitValue); - return $bestFit[$bestFitType]; - default: - return false; - } - } -}