Bug fixes e.g. csp and other

This commit is contained in:
Dennis Eichhorn 2017-11-11 15:02:40 +01:00
parent 2692eae357
commit 82bcc6fb91
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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');