Code Duplication    Length = 7-7 lines in 2 locations

lib/private/Template/SCSSCacher.php 1 location

@@ 295-301 (lines=7) @@
292
	 * @param string $fileName
293
	 * @return string
294
	 */
295
	public function getCachedSCSS($appName, $fileName) {
296
		$tmpfileLoc = explode('/', $fileName);
297
		$fileName = array_pop($tmpfileLoc);
298
		$fileName = $this->prependBaseurlPrefix(str_replace('.scss', '.css', $fileName));
299
300
		return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1);
301
	}
302
303
	/**
304
	 * Prepend hashed base url to the css file

lib/private/Template/JSCombiner.php 1 location

@@ 199-205 (lines=7) @@
196
	 * @param string $fileName
197
	 * @return string
198
	 */
199
	public function getCachedJS($appName, $fileName) {
200
		$tmpfileLoc = explode('/', $fileName);
201
		$fileName = array_pop($tmpfileLoc);
202
		$fileName = str_replace('.json', '.js', $fileName);
203
204
		return substr($this->urlGenerator->linkToRoute('core.Js.getJs', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1);
205
	}
206
207
	/**
208
	 * @param string $root