Code Duplication    Length = 15-18 lines in 3 locations

lib/Controller/Feed.php 1 location

@@ 78-95 (lines=18) @@
75
	 * @param IFactory $l10nFactory
76
	 * @param IConfig $config
77
	 */
78
	public function __construct($appName,
79
								IRequest $request,
80
								Data $data,
81
								GroupHelper $helper,
82
								UserSettings $settings,
83
								IURLGenerator $urlGenerator,
84
								IManager $activityManager,
85
								IFactory $l10nFactory,
86
								IConfig $config) {
87
		parent::__construct($appName, $request);
88
		$this->data = $data;
89
		$this->helper = $helper;
90
		$this->settings = $settings;
91
		$this->urlGenerator = $urlGenerator;
92
		$this->activityManager = $activityManager;
93
		$this->l10nFactory = $l10nFactory;
94
		$this->config = $config;
95
	}
96
97
	/**
98
	 * @PublicPage

lib/Controller/Settings.php 1 location

@@ 75-92 (lines=18) @@
72
	 * @param IL10N $l10n
73
	 * @param CurrentUser $currentUser
74
	 */
75
	public function __construct($appName,
76
								IRequest $request,
77
								IConfig $config,
78
								ISecureRandom $random,
79
								IURLGenerator $urlGenerator,
80
								IManager $manager,
81
								UserSettings $userSettings,
82
								IL10N $l10n,
83
								CurrentUser $currentUser) {
84
		parent::__construct($appName, $request);
85
		$this->config = $config;
86
		$this->random = $random;
87
		$this->urlGenerator = $urlGenerator;
88
		$this->manager = $manager;
89
		$this->userSettings = $userSettings;
90
		$this->l10n = $l10n;
91
		$this->user = (string) $currentUser->getUID();
92
	}
93
94
	/**
95
	 * @NoAdminRequired

lib/Parameter/Factory.php 1 location

@@ 71-85 (lines=15) @@
68
	 * @param IL10N $l
69
	 * @param CurrentUser $currentUser
70
	 */
71
	public function __construct(IManager $activityManager,
72
								IUserManager $userManager,
73
								IURLGenerator $urlGenerator,
74
								IContactsManager $contactsManager,
75
								ViewInfoCache $infoCache,
76
								IL10N $l,
77
								CurrentUser $currentUser) {
78
		$this->activityManager = $activityManager;
79
		$this->userManager = $userManager;
80
		$this->urlGenerator = $urlGenerator;
81
		$this->contactsManager = $contactsManager;
82
		$this->infoCache = $infoCache;
83
		$this->l = $l;
84
		$this->user = (string) $currentUser->getUID();
85
	}
86
87
	/**
88
	 * @param string $user