Conditions | 4 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 1 | public function removeOrder($fieldToRemove) |
|
31 | { |
||
32 | 1 | $order = array(); |
|
33 | 1 | if (count($order) > 0) { |
|
34 | foreach ($this->fields as $field => $direction) { |
||
35 | if (strtolower($fieldToRemove) === strtolower($field)) { |
||
36 | continue; |
||
37 | } |
||
38 | $order[$field] = $direction; |
||
39 | } |
||
40 | } |
||
41 | 1 | $this->fields = $order; |
|
42 | 1 | } |
|
96 | } |