Code Duplication    Length = 27-30 lines in 3 locations

lib/Controller/WopiController.php 1 location

@@ 93-120 (lines=28) @@
90
	 * @param ILogger $logger
91
	 * @param TemplateManager $templateManager
92
	 */
93
	public function __construct(
94
		$appName,
95
		IRequest $request,
96
		IRootFolder $rootFolder,
97
		IURLGenerator $urlGenerator,
98
		IConfig $config,
99
		AppConfig $appConfig,
100
		TokenManager $tokenManager,
101
		IUserManager $userManager,
102
		WopiMapper $wopiMapper,
103
		ILogger $logger,
104
		TemplateManager $templateManager,
105
		IManager $shareManager,
106
		UserScopeService $userScopeService
107
	) {
108
		parent::__construct($appName, $request);
109
		$this->rootFolder = $rootFolder;
110
		$this->urlGenerator = $urlGenerator;
111
		$this->config = $config;
112
		$this->appConfig = $appConfig;
113
		$this->tokenManager = $tokenManager;
114
		$this->userManager = $userManager;
115
		$this->wopiMapper = $wopiMapper;
116
		$this->logger = $logger;
117
		$this->templateManager = $templateManager;
118
		$this->shareManager = $shareManager;
119
		$this->userScopeService = $userScopeService;
120
	}
121
122
	/**
123
	 * Returns general info about a file.

lib/TokenManager.php 1 location

@@ 74-100 (lines=27) @@
71
	 * @param WopiMapper $wopiMapper
72
	 * @param IL10N $trans
73
	 */
74
	public function __construct(
75
		IRootFolder $rootFolder,
76
		IManager $shareManager,
77
		IURLGenerator $urlGenerator,
78
		Parser $wopiParser,
79
		CapabilitiesService $capabilitiesService,
80
		AppConfig $appConfig,
81
		$UserId,
82
		WopiMapper $wopiMapper,
83
		IL10N $trans,
84
		IUserManager $userManager,
85
		IGroupManager $groupManager,
86
		Helper $helper
87
	) {
88
		$this->rootFolder = $rootFolder;
89
		$this->shareManager = $shareManager;
90
		$this->urlGenerator = $urlGenerator;
91
		$this->wopiParser = $wopiParser;
92
		$this->capabilitiesService = $capabilitiesService;
93
		$this->appConfig = $appConfig;
94
		$this->trans = $trans;
95
		$this->userId = $UserId;
96
		$this->wopiMapper = $wopiMapper;
97
		$this->userManager = $userManager;
98
		$this->groupManager = $groupManager;
99
		$this->helper = $helper;
100
	}
101
102
	/**
103
	 * @param string $fileId

lib/Controller/DocumentController.php 1 location

@@ 83-112 (lines=30) @@
80
	 * @param string $UserId
81
	 * @param ILogger $logger
82
	 */
83
	public function __construct(
84
		$appName,
85
		IRequest $request,
86
		IConfig $settings,
87
		AppConfig $appConfig,
88
		IL10N $l10n,
89
		IManager $shareManager,
90
		TokenManager $tokenManager,
91
		IRootFolder $rootFolder,
92
		ISession $session,
93
		$UserId,
94
		ILogger $logger,
95
		\OCA\Richdocuments\TemplateManager $templateManager,
96
		FederationService $federationService,
97
		Helper $helper
98
	) {
99
		parent::__construct($appName, $request);
100
		$this->uid = $UserId;
101
		$this->l10n = $l10n;
102
		$this->settings = $settings;
103
		$this->appConfig = $appConfig;
104
		$this->shareManager = $shareManager;
105
		$this->tokenManager = $tokenManager;
106
		$this->rootFolder = $rootFolder;
107
		$this->session = $session;
108
		$this->logger = $logger;
109
		$this->templateManager = $templateManager;
110
		$this->federationService = $federationService;
111
		$this->helper = $helper;
112
	}
113
114
	/**
115
	 * @PublicPage