Conditions | 5 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function canEdit($member = null) |
||
23 | { |
||
24 | $order = $this->Order(); |
||
25 | if ($order && $order->exists()) { |
||
26 | $status = $order->MyStep(); |
||
27 | if($status && $status->Code == 'FEEFO') { |
||
28 | return parent::canEdit($member); |
||
29 | } else { |
||
30 | return false; |
||
31 | } |
||
32 | } else { |
||
33 | return parent::canEdit($member); |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 |
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.