Skip to content

Commit

Permalink
Fix PHP CS
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Aug 2, 2024
1 parent bbe67d1 commit 0a9727a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Routing/RequestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private function prepareSlug(string $slug): string
}

// Remove the locale code which is at the beginning of the slug
return (string) preg_replace(sprintf('/^%s\//', $localeCode), '', $slug);
return (string) preg_replace(\sprintf('/^%s\//', $localeCode), '', $slug);
}

/**
Expand All @@ -97,6 +97,6 @@ public function __call(string $name, array $arguments)
return \call_user_func($callback, ...$arguments);
}

throw new Exception(sprintf('Method %s not found for class "%s"', $name, \get_class($this->decorated)));
throw new Exception(\sprintf('Method %s not found for class "%s"', $name, \get_class($this->decorated)));
}
}
2 changes: 1 addition & 1 deletion src/Validator/Constraints/UniqueSlugByChannelValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function validate($value, Constraint $constraint): void
'%channel%' => $channel->getCode(),
'%locale%' => $translation->getLocale(),
])
->atPath(sprintf('translations[%s].slug', $translation->getLocale()))
->atPath(\sprintf('translations[%s].slug', $translation->getLocale()))
->addViolation()
;
}
Expand Down

0 comments on commit 0a9727a

Please sign in to comment.