protected function parsedCodeHasNamespaces(array $parsed)
    {
        // Namespaces can only be on first level in the code,
        // so we make only check on it.
        $node = array_filter(
            $parsed,
            function ($value) {
                return $value instanceof NamespaceNode;
            }
        );

        return !empty($node);
    }
protected function parsedCodeHasNamespaces(array $parsed)
    {
        // Namespaces can only be on first level in the code,
        // so we make only check on it.
        $node = array_filter(
            $parsed,
            function ($value) {
                return $value instanceof NamespaceNode;
            }
        );

        return !empty($node);
    }
protected function parsedCodeHasNamespaces ( array $ parsed ) { // Namespaces can only be on first level in the code, // so we make only check on it. $ node = array_filter ( $ parsed , function ( $ value ) { return $ value instanceof NamespaceNode ; } ) ; return ! empty ( $ node ) ; }
Check parsed code for having namespaces.

@param array $parsed

@return bool
Check parsed code for having namespaces .