Code Duplication    Length = 18-20 lines in 2 locations

lib/Controller/Feed.php 1 location

@@ 85-104 (lines=20) @@
82
	 * @param IConfig $config
83
	 * @param string $user
84
	 */
85
	public function __construct($appName,
86
								IRequest $request,
87
								Data $data,
88
								GroupHelper $helper,
89
								UserSettings $settings,
90
								IURLGenerator $urlGenerator,
91
								IManager $activityManager,
92
								IFactory $l10nFactory,
93
								IConfig $config,
94
								$user) {
95
		parent::__construct($appName, $request);
96
		$this->data = $data;
97
		$this->helper = $helper;
98
		$this->settings = $settings;
99
		$this->urlGenerator = $urlGenerator;
100
		$this->activityManager = $activityManager;
101
		$this->l10nFactory = $l10nFactory;
102
		$this->config = $config;
103
		$this->user = $user;
104
	}
105
106
	/**
107
	 * @PublicPage

lib/Controller/Settings.php 1 location

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