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