Code Duplication    Length = 4-5 lines in 2 locations

micro/controllers/Router.php 2 locations

@@ 104-108 (lines=5) @@
101
		$paramsOrder=$routeArray["details"]["parameters"];
102
		$index=0;
103
		foreach ( $paramsOrder as $order ) {
104
			if($order==="*"){
105
				if(isset($params[$index]))
106
					$result=\array_merge($result,\array_diff(\explode("/", $params[$index]),[""]));
107
				break;
108
			}
109
			if(\substr($order, 0,1)==="~"){
110
				$order=\intval(\substr($order,1,1));
111
				if(isset($params[$order])){
@@ 111-114 (lines=4) @@
108
			}
109
			if(\substr($order, 0,1)==="~"){
110
				$order=\intval(\substr($order,1,1));
111
				if(isset($params[$order])){
112
					$result=\array_merge($result,\array_diff(\explode("/", $params[$order]),[""]));
113
					break;
114
				}
115
			}
116
			$result[]=self::cleanParam($params[$order]);
117
			unset($params[$order]);