Conditions | 5 |
Paths | 6 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
25 | public function fields() |
||
26 | { |
||
27 | $fields = parent::fields(); |
||
|
|||
28 | $order = $this->order(); |
||
29 | |||
30 | foreach ($order['receivers'] as $index => $receiver) |
||
31 | { |
||
32 | $fields['receiverList'][$index]['primary'] = empty($receiver['primary']) |
||
33 | ? 'false' |
||
34 | : 'true'; |
||
35 | } |
||
36 | |||
37 | if ($this->config('pay_only_primary') AND $this->action_type() == 'PAY') |
||
38 | { |
||
39 | $fields['actionType'] = 'PAY_PRIMARY'; |
||
40 | } |
||
41 | |||
42 | return $fields; |
||
43 | } |
||
44 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.