diff --git a/src/ncc/Utilities/Validate.php b/src/ncc/Utilities/Validate.php index 9ab5d12..a6b02c2 100644 --- a/src/ncc/Utilities/Validate.php +++ b/src/ncc/Utilities/Validate.php @@ -22,7 +22,6 @@ namespace ncc\Utilities; - use ncc\Enums\LogLevel; use ncc\Enums\RegexPatterns; use ncc\Enums\Scopes; @@ -94,32 +93,6 @@ return false; } - /** - * Validates the scope - * - * @param string $input - * @param bool $resolve - * @return bool - * @noinspection PhpSwitchCanBeReplacedWithMatchExpressionInspection - */ - public static function scope(string $input, bool $resolve=true): bool - { - if($resolve) - { - $input = Resolver::resolveScope($input); - } - - switch($input) - { - case Scopes::SYSTEM->value: - case Scopes::USER->value: - return true; - - default: - return false; - } - } - /** * Validates if the package name is valid *