Code Duplication    Length = 2-2 lines in 2 locations

micro/js/Jquery.php 1 location

@@ 72-73 (lines=2) @@
69
	}
70
71
	protected static function _correctAjaxUrl($url) {
72
		if (StrUtils::endsWith($url, "/"))
73
			$url=substr($url, 0, strlen($url)-1);
74
			if (strncmp($url, 'http://', 7)!=0&&strncmp($url, 'https://', 8)!=0) {
75
				$url=Startup::getConfig()["siteUrl"].$url;
76
			}

micro/controllers/Startup.php 1 location

@@ 65-66 (lines=2) @@
62
		if(!$url){
63
			$url=$config["documentRoot"];
64
		}
65
		if(StrUtils::endswith($url, "/"))
66
			$url=substr($url, 0,strlen($url)-1);
67
		self::$urlParts=explode("/", $url);
68
69
		return self::$urlParts;