Code Duplication    Length = 7-7 lines in 2 locations

lib/private/TemplateLayout.php 2 locations

@@ 217-223 (lines=7) @@
214
		}
215
216
		// Try the webroot path for a match
217
		if ($path !== false && $path !== '') {
218
			$appName = $this->getAppNamefromPath($path);
219
			if(array_key_exists($appName, $v)) {
220
				$appVersion = $v[$appName];
221
				return '?v=' . substr(md5($appVersion), 0, 8) . $themingSuffix;
222
			}
223
		}
224
		// fallback to the file path instead
225
		if ($file !== false && $file !== '') {
226
			$appName = $this->getAppNamefromPath($file);
@@ 225-231 (lines=7) @@
222
			}
223
		}
224
		// fallback to the file path instead
225
		if ($file !== false && $file !== '') {
226
			$appName = $this->getAppNamefromPath($file);
227
			if(array_key_exists($appName, $v)) {
228
				$appVersion = $v[$appName];
229
				return '?v=' . substr(md5($appVersion), 0, 8) . $themingSuffix;
230
			}
231
		}
232
233
		return '?v=' . self::$versionHash . $themingSuffix;
234
	}