Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andyexeter committed Aug 21, 2024
1 parent 6bb6c7f commit 89d41a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Captcha/GoogleRecaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getElements(Element $element, Form $form): array
$element->attributes->set('hidden');

// Placeholder Element that actually displays the captcha
$placeholderId = sprintf('%s_placeholder', $controlId);
$placeholderId = \sprintf('%s_placeholder', $controlId);

$placeholder = new Element('div.palmtree-form-control.g-recaptcha');

Expand All @@ -96,7 +96,7 @@ public function getElements(Element $element, Form $form): array
$placeholder->attributes->setData('site_key', $this->siteKey);
$placeholder->attributes->setData('form_control', $controlId);

$onloadCallback = sprintf('%s_onload', str_replace('-', '_', $controlId));
$onloadCallback = \sprintf('%s_onload', str_replace('-', '_', $controlId));
$placeholder->attributes->setData('script_url', $this->getScriptSrc($onloadCallback));
$placeholder->attributes->setData('onload', $onloadCallback);

Expand Down Expand Up @@ -133,7 +133,7 @@ private function getScriptSrc(string $onloadCallbackName): string
$queryArgs['onload'] = $onloadCallbackName;
$queryArgs['render'] = 'explicit';

return sprintf('%s?%s', strtok($url, '?'), http_build_query($queryArgs));
return \sprintf('%s?%s', strtok($url, '?'), http_build_query($queryArgs));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InaccessiblePropertyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class InaccessiblePropertyException extends OutOfBoundsException
{
public function __construct(string $property, object $object)
{
parent::__construct(sprintf("Property %s is not accessible on object of type '%s'", $property, $object::class));
parent::__construct(\sprintf("Property %s is not accessible on object of type '%s'", $property, $object::class));
}
}
2 changes: 1 addition & 1 deletion src/Exception/UnsettablePropertyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class UnsettablePropertyException extends OutOfBoundsException
{
public function __construct(string $property, object $object)
{
parent::__construct(sprintf("Property %s is not settable on object of type '%s'", $property, $object::class));
parent::__construct(\sprintf("Property %s is not settable on object of type '%s'", $property, $object::class));
}
}
2 changes: 1 addition & 1 deletion src/TypeLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getTypeObject(TypeInterface|string $type, array $args): TypeInte
if ($class === null) {
throw new InvalidTypeException('Type could not be found');
} elseif (!is_subclass_of($class, TypeInterface::class, true)) {
throw new InvalidTypeException(sprintf("Type must be an instance of '%s'. '%s' given", TypeInterface::class, $type));
throw new InvalidTypeException(\sprintf("Type must be an instance of '%s'. '%s' given", TypeInterface::class, $type));
}

foreach ($args as $key => $value) {
Expand Down

0 comments on commit 89d41a7

Please sign in to comment.