| Conditions | 4 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function parseSearchData() |
||
| 33 | { |
||
| 34 | $searchData = []; |
||
| 35 | |||
| 36 | if (stripos($this->search, ':')) { |
||
| 37 | $fields = explode(';', $this->search); |
||
| 38 | |||
| 39 | foreach ($fields as $row) { |
||
| 40 | try { |
||
| 41 | list($field, $value) = explode(':', $row); |
||
| 42 | $searchData[$field] = $value; |
||
| 43 | } catch (Exception $e) { |
||
| 44 | //Surround offset error |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | $this->searchData = $searchData; |
||
| 50 | } |
||
| 51 | } |