Code Duplication    Length = 2-2 lines in 3 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/admin/popo/ControllerAction.php 1 location

@@ 39-40 (lines=2) @@
36
		if (!$url) {
37
			$url="_default";
38
		}
39
		if (StrUtils::endswith($url, "/"))
40
			$url=\substr($url, 0, strlen($url) - 1);
41
		$u=\explode("/", $url);
42
		$u[0]=$ns . $u[0];
43
		if(\class_exists($u[0])){

micro/controllers/Startup.php 1 location

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