private function getNamedPatterns($matches)
    {
        foreach ($matches as $key => $value) {
            if (!is_string($key) || strlen($value) < 1) {
                unset($matches[$key]);
            }
        }

        return $matches;
    }
private function getNamedPatterns($matches)
    {
        foreach ($matches as $key => $value) {
            if (!is_string($key) || strlen($value) < 1) {
                unset($matches[$key]);
            }
        }

        return $matches;
    }
private function getNamedPatterns ( $ matches ) { foreach ( $ matches as $ key => $ value ) { if ( ! is_string ( $ key ) || strlen ( $ value ) < 1 ) { unset ( $ matches [ $ key ] ) ; } } return $ matches ; }
Returns nonempty named sub patterns from the match set.
@param array $matches Sub pattern matches
@return array<string,string> Nonempty named sub pattern matches
Returns nonempty named sub patterns from the match set .