Code Duplication    Length = 4-4 lines in 2 locations

micro/cache/parser/ControllerParser.php 2 locations

@@ 154-157 (lines=4) @@
151
							$parameters[]="~".$find;
152
							$path=\str_replace("\{~" . $paramMatch . "\}", "", $path);
153
							$hasOptionnal=true;
154
						}else{
155
							$parameters[]=$find;
156
							$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
157
						}
158
					}else{
159
						$parameters[]=$find;
160
						$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
@@ 158-161 (lines=4) @@
155
							$parameters[]=$find;
156
							$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
157
						}
158
					}else{
159
						$parameters[]=$find;
160
						$path=\str_replace("\{" . $paramMatch . "\}", "(.+?)", $path);
161
					}
162
				} else {
163
					throw new \Exception("{$paramMatch} is not a parameter of the method " . $method->name);
164
				}