Code Duplication    Length = 19-21 lines in 2 locations

controller/filescontroller.php 1 location

@@ 54-72 (lines=19) @@
51
	 * @param DownloadService $downloadService
52
	 * @param ILogger $logger
53
	 */
54
	public function __construct(
55
		$appName,
56
		IRequest $request,
57
		IURLGenerator $urlGenerator,
58
		SearchFolderService $searchFolderService,
59
		ConfigService $configService,
60
		SearchMediaService $searchMediaService,
61
		DownloadService $downloadService,
62
		ILogger $logger
63
	) {
64
		parent::__construct($appName, $request);
65
66
		$this->urlGenerator = $urlGenerator;
67
		$this->searchFolderService = $searchFolderService;
68
		$this->configService = $configService;
69
		$this->searchMediaService = $searchMediaService;
70
		$this->downloadService = $downloadService;
71
		$this->logger = $logger;
72
	}
73
74
	/**
75
	 * @NoAdminRequired

controller/previewcontroller.php 1 location

@@ 55-75 (lines=21) @@
52
	 * @param EventSource $eventSource
53
	 * @param ILogger $logger
54
	 */
55
	public function __construct(
56
		$appName,
57
		IRequest $request,
58
		IURLGenerator $urlGenerator,
59
		ConfigService $configService,
60
		ThumbnailService $thumbnailService,
61
		PreviewService $previewService,
62
		DownloadService $downloadService,
63
		EventSource $eventSource,
64
		ILogger $logger
65
	) {
66
		parent::__construct($appName, $request);
67
68
		$this->urlGenerator = $urlGenerator;
69
		$this->configService = $configService;
70
		$this->thumbnailService = $thumbnailService;
71
		$this->previewService = $previewService;
72
		$this->downloadService = $downloadService;
73
		$this->eventSource = $eventSource;
74
		$this->logger = $logger;
75
	}
76
77
	/**
78
	 * @NoAdminRequired