Code Duplication    Length = 7-7 lines in 2 locations

lib/private/Template/JSCombiner.php 1 location

@@ 178-184 (lines=7) @@
175
	 * @param string $fileName
176
	 * @return string
177
	 */
178
	public function getCachedJS($appName, $fileName) {
179
		$tmpfileLoc = explode('/', $fileName);
180
		$fileName = array_pop($tmpfileLoc);
181
		$fileName = str_replace('.json', '.js', $fileName);
182
183
		return substr($this->urlGenerator->linkToRoute('core.Js.getJs', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1);
184
	}
185
186
	/**
187
	 * @param string $root

lib/private/Template/SCSSCacher.php 1 location

@@ 231-237 (lines=7) @@
228
	 * @param string $fileName
229
	 * @return string
230
	 */
231
	public function getCachedSCSS($appName, $fileName) {
232
		$tmpfileLoc = explode('/', $fileName);
233
		$fileName = array_pop($tmpfileLoc);
234
		$fileName = str_replace('.scss', '.css', $fileName);
235
236
		return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1);
237
	}
238
}
239