Code Duplication    Length = 4-4 lines in 2 locations

micro/cache/parser/ControllerParser.php 2 locations

@@ 147-150 (lines=4) @@
144
							$parameters[]="~".$find;
145
							$path=\str_replace("\{~" . $paramMatch . "\}", "", $path);
146
							$hasOptionnal=true;
147
						}else{
148
							$parameters[]=$find;
149
							$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
150
						}
151
					}else{
152
						$parameters[]=$find;
153
						$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
@@ 151-154 (lines=4) @@
148
							$parameters[]=$find;
149
							$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
150
						}
151
					}else{
152
						$parameters[]=$find;
153
						$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
154
					}
155
				} else {
156
					throw new \Exception("{$paramMatch} is not a parameter of the method " . $method->name);
157
				}