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

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