Code Duplication    Length = 14-16 lines in 2 locations

lib/private/Template/JSCombiner.php 1 location

@@ 69-82 (lines=14) @@
66
	 * @param ILogger $logger
67
	 * @param IAppManager $appManager
68
	 */
69
	public function __construct(IAppData $appData,
70
								IURLGenerator $urlGenerator,
71
								ICacheFactory $cacheFactory,
72
								SystemConfig $config,
73
								ILogger $logger,
74
								IAppManager $appManager) {
75
		$this->appData = $appData;
76
		$this->urlGenerator = $urlGenerator;
77
		$this->cacheFactory = $cacheFactory;
78
		$this->depsCache = $this->cacheFactory->createDistributed('JS-' . md5($this->urlGenerator->getBaseUrl()));
79
		$this->config = $config;
80
		$this->logger = $logger;
81
		$this->appManager = $appManager;
82
	}
83
84
	/**
85
	 * @param string $root

lib/private/Template/SCSSCacher.php 1 location

@@ 85-100 (lines=16) @@
82
	 * @param string $serverRoot
83
	 * @param ICacheFactory $cacheFactory
84
	 */
85
	public function __construct(ILogger $logger,
86
								Factory $appDataFactory,
87
								IURLGenerator $urlGenerator,
88
								IConfig $config,
89
								\OC_Defaults $defaults,
90
								$serverRoot,
91
								ICacheFactory $cacheFactory) {
92
		$this->logger = $logger;
93
		$this->appData = $appDataFactory->get('css');
94
		$this->urlGenerator = $urlGenerator;
95
		$this->config = $config;
96
		$this->defaults = $defaults;
97
		$this->serverRoot = $serverRoot;
98
		$this->cacheFactory = $cacheFactory;
99
		$this->depsCache = $cacheFactory->createDistributed('SCSS-' . md5($this->urlGenerator->getBaseUrl()));
100
	}
101
102
	/**
103
	 * Process the caching process if needed