| Conditions | 5 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function fetch( |
||
| 41 | $fetch_style = null, |
||
| 42 | $cursor_orientation = \PDO::FETCH_ORI_NEXT, |
||
| 43 | $cursor_offset = 0 |
||
| 44 | ) { |
||
| 45 | $result = parent::fetch($fetch_style, $cursor_orientation, $cursor_offset); |
||
| 46 | |||
| 47 | if (!$this->hasHelpColumn() || !is_array($result)) { |
||
| 48 | return $result; |
||
| 49 | } |
||
| 50 | |||
| 51 | if (is_array($result) && $this->hasHelpColumn()) { |
||
| 52 | //Sorting column is always first in result |
||
| 53 | array_pop($result); |
||
| 54 | } |
||
| 55 | |||
| 56 | return $result; |
||
| 57 | } |
||
| 58 | |||
| 69 |