8000 [Intl] [Workflow] fixes English grammar typos by hhamon · Pull Request #34603 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Intl] [Workflow] fixes English grammar typos #34603

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

Merged
merged 1 commit into from
Nov 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading 8000
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Symfony/Component/Intl/Countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function exists(string $country): bool
/**
* Gets the country name from alpha2 code.
*
* @throws MissingResourceException if the country code does not exists
* @throws MissingResourceException if the country code does not exist
*/
public static function getName(string $country, string $displayLocale = null): string
{
Expand Down
6 changes: 3 additions & 3 deletions src/Symfony/Component/Intl/Currencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function exists(string $currency): bool
}

/**
* @throws MissingResourceException if the currency code does not exists
* @throws MissingResourceException if the currency code does not exist
*/
public static function getName(string $currency, string $displayLocale = null): string
{
Expand Down Expand Up @@ -78,7 +78,7 @@ public static function getNames(string $displayLocale = null): array
}

/**
* @throws MissingResourceException if the currency code does not exists
* @throws MissingResourceException if the currency code does not exist
*/
public static function getSymbol(string $currency, string $displayLocale = null): string
{
Expand Down Expand Up @@ -115,7 +115,7 @@ public static function getNumericCode(string $currency): int
}

/**
* @throws MissingResourceException if the numeric code does not exists
* @throws MissingResourceException if the numeric code does not exist
*/
public static function forNumericCode(int $numericCode): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Intl/Languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function exists(string $language): bool
/**
* Gets the language name from alpha2 code.
*
* @throws MissingResourceException if the language code does not exists
* @throws MissingResourceException if the language code does not exist
*/
public static function getName(string $language, string $displayLocale = null): string
{
Expand Down
2 changes: 1 addition 8000 & 1 deletion src/Symfony/Component/Intl/Locales.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function exists(string $locale): bool
}

/**
* @throws MissingResourceException if the locale does not exists
* @throws MissingResourceException if the locale does not exist
*/
public static function getName(string $locale, string $displayLocale = null): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Intl/Scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function exists(string $script): bool
}

/**
* @throws MissingResourceException if the script code does not exists
* @throws MissingResourceException if the script code does not exist
*/
public static function getName(string $script, string $displayLocale = null): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getMarking($subject)
$method = 'get'.ucfirst($this->property);

if (!method_exists($subject, $method)) {
throw new LogicException(sprintf('The method "%s::%s()" does not exists.', \get_class($subject), $method));
throw new LogicException(sprintf('The method "%s::%s()" does not exist.', \get_class($subject), $method));
}

$marking = $subject->{$method}();
Expand Down Expand Up @@ -81,7 +81,7 @@ public function setMarking($subject, Marking $marking, array $context = [])
$method = 'set'.ucfirst($this->property);

if (!method_exists($subject, $method)) {
throw new LogicException(sprintf('The method "%s::%s()" does not exists.', \get_class($subject), $method));
throw new LogicException(sprintf('The method "%s::%s()" does not exist.', \get_class($subject), $method));
}

$subject->{$method}($marking, $context);
Expand Down
0