| Conditions | 5 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | private function detect() |
||
| 24 | { |
||
| 25 | $params = $this->getParams(); |
||
| 26 | |||
| 27 | if (empty($params)) { |
||
| 28 | return; |
||
| 29 | } |
||
| 30 | |||
| 31 | foreach ($params as $param) { |
||
| 32 | if ($param != '') { |
||
| 33 | $data = explode(":", $param); |
||
| 34 | if (strpos(strtolower($this->sanitizeReference()), strtolower($data[0])) !== false) { |
||
| 35 | $this->overRideScore($data); |
||
| 36 | } |
||
| 42 | } |