private function hasTooManyArguments(array $argumentValues, array $commandArguments) : bool
    {
        if (count($argumentValues) > count($commandArguments)) {
            // Only when the last argument is an array do we allow more request arguments than command arguments
            if (count($commandArguments) === 0 || !end($commandArguments)->isArray()) {
                return true;
            }
        }

        return false;
    }
private function hasTooManyArguments(array $argumentValues, array $commandArguments) : bool
    {
        if (count($argumentValues) > count($commandArguments)) {
            // Only when the last argument is an array do we allow more request arguments than command arguments
            if (count($commandArguments) === 0 || !end($commandArguments)->isArray()) {
                return true;
            }
        }

        return false;
    }
private function hasTooManyArguments ( array $ argumentValues , array $ commandArguments ) : bool { if ( count ( $ argumentValues ) > count ( $ commandArguments ) ) { // Only when the last argument is an array do we allow more request arguments than command arguments if ( count ( $ commandArguments ) === 0 || ! end ( $ commandArguments ) -> isArray ( ) ) { return true ; } } return false ; }
Gets whether or not there are too many argument values

@param array $argumentValues The list of argument values
@param ICommand[] $commandArguments The list of command arguments
@return bool True if there are too many arguments, otherwise false
Gets whether or not there are too many argument values