| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | protected function normalizeUrl() |
||
| 30 | { |
||
| 31 | $this->url->stripQueryString(); |
||
| 32 | |||
| 33 | if (preg_match('~\/users\/([a-zA-Z0-9\_\.-]+)\/view\/([0-9]+)~i', $this->url, $matches)) { |
||
| 34 | $this->url = new \Embera\Url('http://video.yandex.ru/users/' . $matches['1'] . '/view/' . $matches['2'] . '/'); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 |