Code Duplication    Length = 14-21 lines in 3 locations

apps/federation/lib/Controller/OCSAuthAPIController.php 1 location

@@ 82-100 (lines=19) @@
79
	 * @param ILogger $logger
80
	 * @param ITimeFactory $timeFactory
81
	 */
82
	public function __construct(
83
		$appName,
84
		IRequest $request,
85
		ISecureRandom $secureRandom,
86
		IJobList $jobList,
87
		TrustedServers $trustedServers,
88
		DbHandler $dbHandler,
89
		ILogger $logger,
90
		ITimeFactory $timeFactory
91
	) {
92
		parent::__construct($appName, $request);
93
94
		$this->secureRandom = $secureRandom;
95
		$this->jobList = $jobList;
96
		$this->trustedServers = $trustedServers;
97
		$this->dbHandler = $dbHandler;
98
		$this->logger = $logger;
99
		$this->timeFactory = $timeFactory;
100
	}
101
102
	/**
103
	 * @NoCSRFRequired

apps/theming/lib/Controller/IconController.php 1 location

@@ 70-90 (lines=21) @@
67
	 * @param IconBuilder $iconBuilder
68
	 * @param ImageManager $imageManager
69
	 */
70
	public function __construct(
71
		$appName,
72
		IRequest $request,
73
		ThemingDefaults $themingDefaults,
74
		Util $util,
75
		ITimeFactory $timeFactory,
76
		IConfig $config,
77
		IconBuilder $iconBuilder,
78
		ImageManager $imageManager,
79
		FileAccessHelper $fileAccessHelper
80
	) {
81
		parent::__construct($appName, $request);
82
83
		$this->themingDefaults = $themingDefaults;
84
		$this->util = $util;
85
		$this->timeFactory = $timeFactory;
86
		$this->config = $config;
87
		$this->iconBuilder = $iconBuilder;
88
		$this->imageManager = $imageManager;
89
		$this->fileAccessHelper = $fileAccessHelper;
90
	}
91
92
	/**
93
	 * @PublicPage

apps/updatenotification/lib/Controller/AdminController.php 1 location

@@ 60-73 (lines=14) @@
57
	 * @param ITimeFactory $timeFactory
58
	 * @param IL10N $l10n
59
	 */
60
	public function __construct($appName,
61
								IRequest $request,
62
								IJobList $jobList,
63
								ISecureRandom $secureRandom,
64
								IConfig $config,
65
								ITimeFactory $timeFactory,
66
								IL10N $l10n) {
67
		parent::__construct($appName, $request);
68
		$this->jobList = $jobList;
69
		$this->secureRandom = $secureRandom;
70
		$this->config = $config;
71
		$this->timeFactory = $timeFactory;
72
		$this->l10n = $l10n;
73
	}
74
75
	/**
76
	 * @param string $channel