Code Duplication    Length = 2-2 lines in 2 locations

micro/js/Jquery.php 1 location

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

micro/controllers/Startup.php 1 location

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