Code Duplication    Length = 11-13 lines in 2 locations

lib/private/Preview/Generator.php 1 location

@@ 61-73 (lines=13) @@
58
	 * @param GeneratorHelper $helper
59
	 * @param EventDispatcherInterface $eventDispatcher
60
	 */
61
	public function __construct(
62
		IConfig $config,
63
		IPreview $previewManager,
64
		IAppData $appData,
65
		GeneratorHelper $helper,
66
		EventDispatcherInterface $eventDispatcher
67
	) {
68
		$this->config = $config;
69
		$this->previewManager = $previewManager;
70
		$this->appData = $appData;
71
		$this->helper = $helper;
72
		$this->eventDispatcher = $eventDispatcher;
73
	}
74
75
	/**
76
	 * Returns a preview of a file

lib/private/PreviewManager.php 1 location

@@ 84-94 (lines=11) @@
81
	 * @param EventDispatcherInterface $eventDispatcher
82
	 * @param string $userId
83
	 */
84
	public function __construct(IConfig $config,
85
								IRootFolder $rootFolder,
86
								IAppData $appData,
87
								EventDispatcherInterface $eventDispatcher,
88
								$userId) {
89
		$this->config = $config;
90
		$this->rootFolder = $rootFolder;
91
		$this->appData = $appData;
92
		$this->eventDispatcher = $eventDispatcher;
93
		$this->userId = $userId;
94
	}
95
96
	/**
97
	 * In order to improve lazy loading a closure can be registered which will be