Code Duplication    Length = 2-2 lines in 2 locations

micro/cache/ControllerParser.php 1 location

@@ 36-37 (lines=2) @@
33
		if ($path !== "" && StrUtils::startswith($path, "/"))
34
			$path=\substr($path, 1);
35
		$path=$prefix . $path;
36
		if (StrUtils::endswith($path, "/"))
37
			$path=\substr($path, 0, \strlen($path) - 1);
38
		return $path;
39
	}
40

micro/controllers/Startup.php 1 location

@@ 54-55 (lines=2) @@
51
		if (!$url) {
52
			$url="_default";
53
		}
54
		if (StrUtils::endswith($url, "/"))
55
			$url=\substr($url, 0, strlen($url) - 1);
56
		self::$urlParts=\explode("/", $url);
57
58
		return self::$urlParts;