Code Duplication    Length = 15-17 lines in 2 locations

lib/Controller/WopiController.php 1 location

@@ 69-85 (lines=17) @@
66
	 * @param IUserManager $userManager
67
	 * @param WopiMapper $wopiMapper
68
	 */
69
	public function __construct($appName,
70
								$UserId,
71
								IRequest $request,
72
								IRootFolder $rootFolder,
73
								IURLGenerator $urlGenerator,
74
								IConfig $config,
75
								TokenManager $tokenManager,
76
								IUserManager $userManager,
77
								WopiMapper $wopiMapper) {
78
		parent::__construct($appName, $request);
79
		$this->rootFolder = $rootFolder;
80
		$this->urlGenerator = $urlGenerator;
81
		$this->config = $config;
82
		$this->tokenManager = $tokenManager;
83
		$this->userManager = $userManager;
84
		$this->wopiMapper = $wopiMapper;
85
	}
86
87
	/**
88
	 * Returns general info about a file.

lib/TokenManager.php 1 location

@@ 59-73 (lines=15) @@
56
	 * @param string $UserId
57
	 * @param WopiMapper $wopiMapper
58
	 */
59
	public function __construct(IRootFolder $rootFolder,
60
								IManager $shareManager,
61
								IURLGenerator $urlGenerator,
62
								Parser $wopiParser,
63
								AppConfig $appConfig,
64
								$UserId,
65
								WopiMapper $wopiMapper) {
66
		$this->rootFolder = $rootFolder;
67
		$this->shareManager = $shareManager;
68
		$this->urlGenerator = $urlGenerator;
69
		$this->wopiParser = $wopiParser;
70
		$this->appConfig = $appConfig;
71
		$this->userId = $UserId;
72
		$this->wopiMapper = $wopiMapper;
73
	}
74
75
	/**
76
	 * @param string $fileId