Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
norkunas committed Aug 7, 2024
1 parent ae0dad8 commit a0fcb00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Form/Type/PhoneNumberType.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ public function getBlockPrefix(): string

private function formatDisplayChoice(string $displayType, string $regionName, string $regionCode, string $countryCode, bool $displayEmojiFlag): string
{
$formattedDisplay = sprintf('%s (+%s)', $regionName, $countryCode);
$formattedDisplay = \sprintf('%s (+%s)', $regionName, $countryCode);
if (self::DISPLAY_COUNTRY_SHORT === $displayType) {
$formattedDisplay = sprintf('%s +%s', $regionCode, $countryCode);
$formattedDisplay = \sprintf('%s +%s', $regionCode, $countryCode);
}

if ($displayEmojiFlag) {
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Constraints/PhoneNumberValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private function getRegion(PhoneNumberConstraint $constraint): string
try {
$defaultRegion = $this->getPropertyAccessor()->getValue($object, $path);
} catch (NoSuchPropertyException $e) {
throw new ConstraintDefinitionException(sprintf('Invalid property path "%s" provided to "%s" constraint: ', $path, get_debug_type($constraint)).$e->getMessage(), 0, $e);
throw new ConstraintDefinitionException(\sprintf('Invalid property path "%s" provided to "%s" constraint: ', $path, get_debug_type($constraint)).$e->getMessage(), 0, $e);
}
}

Expand Down

0 comments on commit a0fcb00

Please sign in to comment.