Conditions | 5 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function canEdit($member = null) |
||
22 | { |
||
23 | $order = $this->Order(); |
||
24 | if ($order && $order->exists()) { |
||
25 | $status = $order->MyStep(); |
||
26 | if ($status && $status->Code == 'FEEFO') { |
||
27 | return parent::canEdit($member); |
||
28 | } else { |
||
29 | return false; |
||
30 | } |
||
31 | } else { |
||
32 | return parent::canEdit($member); |
||
33 | } |
||
34 | } |
||
35 | } |
||
36 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.