Code Duplication    Length = 9-11 lines in 2 locations

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

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

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

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