| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | private function setUrlRegex() |
||
| 28 | { |
||
| 29 | $standardUrlRegEx = '(?:' . $this->protocol . '|www\\.)' . $this->auth . '(?:localhost|' . $this->ip . '|' . $this->host . $this->domain . '(' . $this->tld . '|' . $this->tldAlt . '))' . $this->port . $this->path; |
||
| 30 | |||
| 31 | $this->standardUrlRegEx = '/' . $standardUrlRegEx . '/i'; |
||
| 32 | } |
||
| 33 | |||
| 38 | } |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.