protected function skipNicknameParts($parts, $startIndex)
    {
        $total = count($parts);

        for ($i = $startIndex; $i < $total; $i++) {
            if (!($parts[$i] instanceof Nickname)) {
                return $i;
            }
        }

        return $total - 1;
    }
protected function skipNicknameParts($parts, $startIndex)
    {
        $total = count($parts);

        for ($i = $startIndex; $i < $total; $i++) {
            if (!($parts[$i] instanceof Nickname)) {
                return $i;
            }
        }

        return $total - 1;
    }
protected function skipNicknameParts ( $ parts , $ startIndex ) { $ total = count ( $ parts ) ; for ( $ i = $ startIndex ; $ i < $ total ; $ i ++ ) { if ( ! ( $ parts [ $ i ] instanceof Nickname ) ) { return $ i ; } } return $ total - 1 ; }
find the next non-nickname index in parts

@param $parts
@param $startIndex
@return int|void
find the next non - nickname index in parts