src/NodeVisitor.php
private function reduceStmts(array $namespaces): array
    {
        $stmts = [];
        foreach ($namespaces as $namespace) {
            foreach ($namespace->stmts as $stmt) {
                $stmts[] = $stmt;
            }
        }
        return $stmts;
    }
private function reduceStmts(array $namespaces): array
    {
        $stmts = [];
        foreach ($namespaces as $namespace) {
            foreach ($namespace->stmts as $stmt) {
                $stmts[] = $stmt;
            }
        }
        return $stmts;
    }
private function reduceStmts ( array $ namespaces ) : array { $ stmts = [ ] ; foreach ( $ namespaces as $ namespace ) { foreach ( $ namespace -> stmts as $ stmt ) { $ stmts [ ] = $ stmt ; } } return $ stmts ; }
Merges the statements of each namespace into one array.

@param Namespace_[] $namespaces
@return Stmt[]
Merges the statements of each namespace into one array .