Code Duplication    Length = 17-19 lines in 2 locations

settings/Mailer/NewUserMailHelper.php 1 location

@@ 67-85 (lines=19) @@
64
	 * @param ICrypto $crypto
65
	 * @param string $fromAddress
66
	 */
67
	public function __construct(Defaults $themingDefaults,
68
								IURLGenerator $urlGenerator,
69
								IL10N $l10n,
70
								IMailer $mailer,
71
								ISecureRandom $secureRandom,
72
								ITimeFactory $timeFactory,
73
								IConfig $config,
74
								ICrypto $crypto,
75
								$fromAddress) {
76
		$this->themingDefaults = $themingDefaults;
77
		$this->urlGenerator = $urlGenerator;
78
		$this->l10n = $l10n;
79
		$this->mailer = $mailer;
80
		$this->secureRandom = $secureRandom;
81
		$this->timeFactory = $timeFactory;
82
		$this->config = $config;
83
		$this->crypto = $crypto;
84
		$this->fromAddress = $fromAddress;
85
	}
86
87
	/**
88
	 * Set the IL10N object

settings/Hooks.php 1 location

@@ 54-70 (lines=17) @@
51
	/** @var IL10N */
52
	protected $l;
53
54
	public function __construct(IActivityManager $activityManager,
55
								IUserManager $userManager,
56
								IUserSession $userSession,
57
								IURLGenerator $urlGenerator,
58
								IMailer $mailer,
59
								IConfig $config,
60
								IFactory $languageFactory,
61
								IL10N $l) {
62
		$this->activityManager = $activityManager;
63
		$this->userManager = $userManager;
64
		$this->userSession = $userSession;
65
		$this->urlGenerator = $urlGenerator;
66
		$this->mailer = $mailer;
67
		$this->config = $config;
68
		$this->languageFactory = $languageFactory;
69
		$this->l = $l;
70
	}
71
72
	/**
73
	 * @param string $uid