mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-03 17:22:32 +03:00
Codestyle fixes.
This commit is contained in:
parent
16a2349d86
commit
08d18b1dc1
2 changed files with 11 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue