protected static function formatNamespaceGroup(array $namespace, $group)
    {
        $group = static::checkGroup($group);

        if ('any' === $group) {
            $namespace = ['*'];
        } else {
            foreach ($namespace as &$value) {
                $value = static::checkNamespace($value);
                if ('path' === $group) {
                    $value .= '\\*';
                }
            }
        }

        return $namespace;
    }
protected static function formatNamespaceGroup(array $namespace, $group)
    {
        $group = static::checkGroup($group);

        if ('any' === $group) {
            $namespace = ['*'];
        } else {
            foreach ($namespace as &$value) {
                $value = static::checkNamespace($value);
                if ('path' === $group) {
                    $value .= '\\*';
                }
            }
        }

        return $namespace;
    }
protected static function formatNamespaceGroup ( array $ namespace , $ group ) { $ group = static :: checkGroup ( $ group ) ; if ( 'any' === $ group ) { $ namespace = [ '*' ] ; } else { foreach ( $ namespace as & $ value ) { $ value = static :: checkNamespace ( $ value ) ; if ( 'path' === $ group ) { $ value .= '\\*' ; } } } return $ namespace ; }
Formats and returns a namespace param.

@param string[] $namespace
@param string $group
Formats and returns a namespace param .