diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 80c7fdf..d4b05b2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,15 +3,15 @@ version: 2 updates: - package-ecosystem: "github-actions" directory: "/" - target-branch: "develop" + target-branch: "master" schedule: interval: "weekly" labels: - - "dependencies" + - "deps" - package-ecosystem: "composer" directory: "/" - target-branch: "develop" + target-branch: "master" schedule: interval: "weekly" labels: - - "dependencies" + - "deps" diff --git a/.gitignore b/.gitignore index 6872d8b..4bed0c3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .DS_Store .idea .phpunit.result.cache -READMETODO.md \ No newline at end of file +READMETODO.md +build \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 55% rename from phpunit.xml rename to phpunit.xml.dist index d025725..4020e1b 100644 --- a/phpunit.xml +++ b/phpunit.xml.dist @@ -1,17 +1,17 @@ - - - ./tests/Unit - - - + ./src + + + tests + + diff --git a/src/Helpers/Helpers.php b/src/Helpers/Helpers.php index d902cbc..32367f1 100644 --- a/src/Helpers/Helpers.php +++ b/src/Helpers/Helpers.php @@ -25,15 +25,10 @@ public static function roundMode($config): int } /** - * check if array is multi dimensional array - * This will only check the first element of the array if it is still an array - * to decide that it is a multi dimensional, if you want to check the array strictly - * with all on its element, flag the second argument as true - * - * @param bool $recursive - * @return bool + * Check if array is multi dimensional array + * This will only check if the first element of the array is an array */ - public static function isMultiArray($array, $recursive = false) + public static function isMultiArray(array $array, bool $recursive = false): bool { if ($recursive) { return (count($array) == count($array, COUNT_RECURSIVE)) ? false : true; @@ -45,8 +40,9 @@ public static function isMultiArray($array, $recursive = false) return false; } } - } + + return false; } /**