diff --git a/module/Core/src/Service/UrlShortener.php b/module/Core/src/Service/UrlShortener.php index d67c7c16..1d652e07 100644 --- a/module/Core/src/Service/UrlShortener.php +++ b/module/Core/src/Service/UrlShortener.php @@ -46,17 +46,23 @@ class UrlShortener implements UrlShortenerInterface * @param ClientInterface $httpClient * @param EntityManagerInterface $em * @param Cache $cache - * @param string $chars * @param bool $isUrlExistsValidation + * @param string $chars * - * @Inject({"httpClient", "em", Cache::class, "config.url_shortener.shortcode_chars", "config.url_shortener.validate_url"}) + * @Inject({ + * "httpClient", + * "em", + * Cache::class, + * "config.url_shortener.validate_url", + * "config.url_shortener.shortcode_chars" + * }) */ public function __construct( ClientInterface $httpClient, EntityManagerInterface $em, Cache $cache, - $chars = self::DEFAULT_CHARS, - $isUrlExistsValidation + $isUrlExistsValidation, + $chars = self::DEFAULT_CHARS ) { $this->httpClient = $httpClient; $this->em = $em; diff --git a/module/Core/test/Service/UrlShortenerTest.php b/module/Core/test/Service/UrlShortenerTest.php index e2980194..0552ef5a 100644 --- a/module/Core/test/Service/UrlShortenerTest.php +++ b/module/Core/test/Service/UrlShortenerTest.php @@ -67,11 +67,7 @@ class UrlShortenerTest extends TestCase public function setUrlShortener($isUrlValidationExists) { $this->urlShortener = new UrlShortener( - $this->httpClient->reveal(), - $this->em->reveal(), - $this->cache, - UrlShortener::DEFAULT_CHARS, - $isUrlValidationExists + $this->httpClient->reveal(), $this->em->reveal(), $this->cache, $isUrlValidationExists, UrlShortener::DEFAULT_CHARS ); }