Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 35-44 (lines=10) @@
32
     */
33
    private $translator;
34
35
    public function __construct(
36
        UrlShortenerInterface $urlShortener,
37
        TranslatorInterface $translator,
38
        array $domainConfig
39
    ) {
40
        $this->urlShortener = $urlShortener;
41
        $this->translator = $translator;
42
        $this->domainConfig = $domainConfig;
43
        parent::__construct(null);
44
    }
45
46
    public function configure()
47
    {

module/Rest/src/Action/ShortCode/AbstractCreateShortCodeAction.php 1 location

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