| Conditions | 5 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | private function detect() |
||
| 29 | { |
||
| 30 | |||
|
|
|||
| 31 | |||
| 32 | $params = $this->getParams(); |
||
| 33 | if (empty($params)) { |
||
| 34 | return; |
||
| 35 | } |
||
| 36 | |||
| 37 | foreach ($params as $param) { |
||
| 38 | if ($param != '') { |
||
| 39 | $data = explode(":", $param); |
||
| 40 | if (strpos(strtolower($this->sanitizeReference()), strtolower($data[0])) !== false) { |
||
| 41 | $this->setRealScore($data[1]); |
||
| 42 | } |
||
| 66 | } |