Code Duplication    Length = 9-9 lines in 2 locations

lib/private/TemplateLayout.php 2 locations

@@ 163-171 (lines=9) @@
160
	 * @param array $styles
161
	 * @return array
162
	 */
163
	static public function findStylesheetFiles($styles) {
164
		$locator = new \OC\Template\CSSResourceLocator(
165
			\OC::$server->getLogger(),
166
			\OC_Util::getTheme(),
167
			[\OC::$SERVERROOT => \OC::$WEBROOT],
168
			[\OC::$SERVERROOT => \OC::$WEBROOT]);
169
		$locator->find($styles);
170
		return $locator->getResources();
171
	}
172
173
	/**
174
	 * @param array $scripts
@@ 177-185 (lines=9) @@
174
	 * @param array $scripts
175
	 * @return array
176
	 */
177
	static public function findJavascriptFiles($scripts) {
178
		$locator = new \OC\Template\JSResourceLocator(
179
			\OC::$server->getLogger(),
180
			\OC_Util::getTheme(),
181
			[\OC::$SERVERROOT => \OC::$WEBROOT],
182
			[\OC::$SERVERROOT => \OC::$WEBROOT]);
183
		$locator->find($scripts);
184
		return $locator->getResources();
185
	}
186
187
	/**
188
	 * Converts the absolute file path to a relative path from \OC::$SERVERROOT