Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOPS-1870 Allow Van as surname when only surname #1

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

estringana
Copy link
Contributor

It was detected that Van was always detected as prefix of surname.
However, it did not make sense to have a prefix without a surname.
This PR fixes that, it checks if it is the only surname and if it
is, it get the only surname as surname without paying attention
to the prefixes.

@theiconic-ci
Copy link

@estringana, thanks for your PR! By analyzing the history of the files in this pull request, we identified @wyrfel to be a potential reviewer.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling df4233a on hotfix/OPS-1870-Allow-Van-as-Surname into d45c6ec on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f3fc3bf on hotfix/OPS-1870-Allow-Van-as-Surname into d45c6ec on master.

@estringana estringana force-pushed the hotfix/OPS-1870-Allow-Van-as-Surname branch from f3fc3bf to df4233a Compare August 14, 2017 02:42
return static::$prefixes[self::getKey($value)];
}

return $this->camelcase($this->getValue());
}

public function setAsNotPrefix()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disableCheckForPrefixes() ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setIsPrefix() 😄

It was detected that Van was always detected as prefix of surname.
However, it did not make sense to have a prefix without a surname.
This PR fixes that, it checks if it is the only surname and if it
is, it get the only surname as surname without paying attention
to the prefixes.
@estringana estringana force-pushed the hotfix/OPS-1870-Allow-Van-as-Surname branch from df4233a to 1124002 Compare August 14, 2017 03:03
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1124002 on hotfix/OPS-1870-Allow-Van-as-Surname into d45c6ec on master.

@estringana estringana merged commit ffb66dd into master Aug 14, 2017
@estringana estringana deleted the hotfix/OPS-1870-Allow-Van-as-Surname branch August 14, 2017 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants