src/VendorDirectory.php
private function isValidNamespace($namespace, $directories): bool
    {
        if (is_string($namespace) && is_array($directories)) {
            $total = count($directories);
            $valid = count(array_filter($directories, 'is_string'));

            return $total > 0 && $total == $valid;
        }

        return false;
    }
private function isValidNamespace($namespace, $directories): bool
    {
        if (is_string($namespace) && is_array($directories)) {
            $total = count($directories);
            $valid = count(array_filter($directories, 'is_string'));

            return $total > 0 && $total == $valid;
        }

        return false;
    }
private function isValidNamespace ( $ namespace , $ directories ) : bool { if ( is_string ( $ namespace ) && is_array ( $ directories ) ) { $ total = count ( $ directories ) ; $ valid = count ( array_filter ( $ directories , 'is_string' ) ) ; return $ total > 0 && $ total == $ valid ; } return false ; }
Return whether the given values defines a valid namespace.

@param mixed $namespace
@param mixed $directories
@return bool
Return whether the given values defines a valid namespace .