@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | while ($pattern) { |
| 250 | 250 | if (preg_match('/^' . self::URL_VARIABLE_PATTERN . '/', $pattern, $matches)) { |
| 251 | - list($part, , $reg, $key) = $matches; |
|
| 251 | + list($part,, $reg, $key) = $matches; |
|
| 252 | 252 | |
| 253 | 253 | $uri_pattern = $reg ? $reg : self::DEFAULT_REGEX; |
| 254 | 254 | |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | $Parsed[$index = $rule] = []; |
| 355 | 355 | while ($index) { |
| 356 | 356 | if (preg_match('/^' . self::URL_VARIABLE_PATTERN . '/', $index, $matches)) { |
| 357 | - list($part, , , $key) = $matches; |
|
| 357 | + list($part,,, $key) = $matches; |
|
| 358 | 358 | |
| 359 | 359 | $Parsed[$rule][] = [1, $key]; |
| 360 | 360 | $index = substr($index, strlen($part)); |
@@ -45,9 +45,9 @@ |
||
| 45 | 45 | |
| 46 | 46 | if (is_callable($test)) { |
| 47 | 47 | $i = 1; $base = $value; |
| 48 | - while(call_user_func($test, $value)) { |
|
| 49 | - $i+=rand(1, 99); |
|
| 50 | - $value = $base.'-'.$i; |
|
| 48 | + while (call_user_func($test, $value)) { |
|
| 49 | + $i += rand(1, 99); |
|
| 50 | + $value = $base . '-' . $i; |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |