Code Duplication    Length = 9-11 lines in 3 locations

module/CLI/src/Command/Shortcode/GenerateShortcodeCommand.php 1 location

@@ 40-49 (lines=10) @@
37
     *
38
     * @Inject({UrlShortener::class, "translator", "config.url_shortener.domain"})
39
     */
40
    public function __construct(
41
        UrlShortenerInterface $urlShortener,
42
        TranslatorInterface $translator,
43
        array $domainConfig
44
    ) {
45
        $this->urlShortener = $urlShortener;
46
        $this->translator = $translator;
47
        $this->domainConfig = $domainConfig;
48
        parent::__construct(null);
49
    }
50
51
    public function configure()
52
    {

module/Rest/src/Action/CreateShortcodeAction.php 1 location

@@ 41-51 (lines=11) @@
38
     *
39
     * @Inject({UrlShortener::class, "translator", "config.url_shortener.domain", "Logger_Shlink"})
40
     */
41
    public function __construct(
42
        UrlShortenerInterface $urlShortener,
43
        TranslatorInterface $translator,
44
        array $domainConfig,
45
        LoggerInterface $logger = null
46
    ) {
47
        parent::__construct($logger);
48
        $this->urlShortener = $urlShortener;
49
        $this->translator = $translator;
50
        $this->domainConfig = $domainConfig;
51
    }
52
53
    /**
54
     * @param Request $request

module/Rest/src/Action/ResolveUrlAction.php 1 location

@@ 34-42 (lines=9) @@
31
     *
32
     * @Inject({UrlShortener::class, "translator"})
33
     */
34
    public function __construct(
35
        UrlShortenerInterface $urlShortener,
36
        TranslatorInterface $translator,
37
        LoggerInterface $logger = null
38
    ) {
39
        parent::__construct($logger);
40
        $this->urlShortener = $urlShortener;
41
        $this->translator = $translator;
42
    }
43
44
    /**
45
     * @param Request $request