Code Duplication    Length = 7-7 lines in 2 locations

lib/private/Template/SCSSCacher.php 1 location

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

lib/private/Template/JSCombiner.php 1 location

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