From 82bcc6fb9156157fc26b56cf4ba1f622946608ff Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Nov 2017 15:02:40 +0100 Subject: [PATCH] Bug fixes e.g. csp and other --- Math/Statistic/Basic.php | 1 + Utils/Git/Repository.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Math/Statistic/Basic.php b/Math/Statistic/Basic.php index ff1ba0454..0100183cd 100644 --- a/Math/Statistic/Basic.php +++ b/Math/Statistic/Basic.php @@ -41,6 +41,7 @@ class Basic public static function freaquency(array $values) : array { $freaquency = []; + $sum = 1; if (!($isArray = is_array(reset($values)))) { $sum = array_sum($values); diff --git a/Utils/Git/Repository.php b/Utils/Git/Repository.php index 4233a30ec..1de923cd2 100644 --- a/Utils/Git/Repository.php +++ b/Utils/Git/Repository.php @@ -234,7 +234,7 @@ class Repository } if (isset($source)) { - return stripos($haystack, '//') ? $this->cloneRemote($source) : $this->cloneFrom($source); + return stripos($source, '//') !== false ? $this->cloneRemote($source) : $this->cloneFrom($source); } return $this->run('init');