Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed Sep 23, 2024
1 parent 34a0769 commit ea128ed
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Controller/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function fetchJsonRequestBody (Request $request, bool $allowInvalid = fal
if (!\is_array($data))
{
throw new InvalidJsonRequestException(
sprintf("Invalid top level type in JSON payload. Must be array, is %s", \gettype($data)),
\sprintf("Invalid top level type in JSON payload. Must be array, is %s", \gettype($data)),
400,
);
}
Expand All @@ -96,7 +96,7 @@ public function fetchJsonRequestBody (Request $request, bool $allowInvalid = fal
catch (\JsonException $exception)
{
throw new InvalidJsonRequestException(
sprintf("Parsing JSON payload failed: %s", $exception->getMessage()),
\sprintf("Parsing JSON payload failed: %s", $exception->getMessage()),
400,
$exception,
);
Expand Down
4 changes: 2 additions & 2 deletions src/Doctrine/DoctrineChangeChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function hasContentChanged () : bool

if (!$defaultEntityManager instanceof EntityManagerInterface)
{
throw new InvalidDoctrineChangeCheckException(sprintf(
throw new InvalidDoctrineChangeCheckException(\sprintf(
"Default manager is no entity manager, but '%s'",
get_debug_type($defaultEntityManager),
));
Expand Down Expand Up @@ -80,7 +80,7 @@ public function getEntityChanges (

if (!$entityManager instanceof EntityManagerInterface)
{
throw new InvalidDoctrineChangeCheckException(sprintf(
throw new InvalidDoctrineChangeCheckException(\sprintf(
"Could not fetch entity manager for entity of type '%s'",
$entityClass,
));
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/MissingOptionalDependencyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class MissingOptionalDependencyException extends \Exception implements Rad
public function __construct (string $package, ?\Throwable $previous = null)
{
parent::__construct(
sprintf("Missing optional dependency: %s", $package),
\sprintf("Missing optional dependency: %s", $package),
0,
$previous,
);
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/Structure/InvalidArgumentTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function create (
) : static
{
return new self(
sprintf(
\sprintf(
"Invalid argument type for key '%s': expected %s, but was %s",
$key,
$expected,
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/Structure/MissingArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function create (
) : static
{
return new self(
sprintf(
\sprintf(
"Missing argument '%s'. Only keys registered are %s",
$missingKey,
implode(", ", $allKeys),
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/UnexpectedTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct (
?\Throwable $previous = null,
) {
parent::__construct(
sprintf('Expected argument of type %s, "%s" given', $expectedType, get_debug_type($value)),
\sprintf('Expected argument of type %s, "%s" given', $expectedType, get_debug_type($value)),
0,
$previous,
);
Expand Down
2 changes: 1 addition & 1 deletion src/Stats/SectionStatsLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class SectionStatsLog implements StatsLogInterface
public function __construct (StatsLogInterface $parent, string $prefix)
{
$this->parent = $parent;
$this->prefix = sprintf("[%s] ", rtrim($prefix));
$this->prefix = \sprintf("[%s] ", rtrim($prefix));
}

/**
Expand Down

0 comments on commit ea128ed

Please sign in to comment.