Code Duplication    Length = 12-12 lines in 2 locations

lib/private/TemplateLayout.php 2 locations

@@ 178-189 (lines=12) @@
175
	 * @param array $styles
176
	 * @return array
177
	 */
178
	static public function findStylesheetFiles($styles) {
179
		// Read the selected theme from the config file
180
		$theme = \OC_Util::getTheme();
181
182
		$locator = new \OC\Template\CSSResourceLocator(
183
			\OC::$server->getLogger(),
184
			$theme,
185
			array( \OC::$SERVERROOT => \OC::$WEBROOT ),
186
			array( \OC::$SERVERROOT => \OC::$WEBROOT ));
187
		$locator->find($styles);
188
		return $locator->getResources();
189
	}
190
191
	/**
192
	 * @param array $scripts
@@ 195-206 (lines=12) @@
192
	 * @param array $scripts
193
	 * @return array
194
	 */
195
	static public function findJavascriptFiles($scripts) {
196
		// Read the selected theme from the config file
197
		$theme = \OC_Util::getTheme();
198
199
		$locator = new \OC\Template\JSResourceLocator(
200
			\OC::$server->getLogger(),
201
			$theme,
202
			array( \OC::$SERVERROOT => \OC::$WEBROOT ),
203
			array( \OC::$SERVERROOT => \OC::$WEBROOT ));
204
		$locator->find($scripts);
205
		return $locator->getResources();
206
	}
207
208
	public function generateAssets() {
209
		$assetDir = \OC::$server->getConfig()->getSystemValue('assetdirectory', \OC::$SERVERROOT);