src/NodeVisitor.php
private function allAreGlobal(array $namespaces): bool
    {
        foreach ($namespaces as $namespace) {
            if ($namespace->name && $namespace->name->toString() !== '') {
                return false;
            }
        }
        return true;
    }
private function allAreGlobal(array $namespaces): bool
    {
        foreach ($namespaces as $namespace) {
            if ($namespace->name && $namespace->name->toString() !== '') {
                return false;
            }
        }
        return true;
    }
private function allAreGlobal ( array $ namespaces ) : bool { foreach ( $ namespaces as $ namespace ) { if ( $ namespace -> name && $ namespace -> name -> toString ( ) !== '' ) { return false ; } } return true ; }
Determines if each namespace in the list is a global namespace.

@param Namespace_[] $namespaces
@return bool
Determines if each namespace in the list is a global namespace .