Both the $myVar assignment in line 1 and the $higher assignment in line 2
are dead. The first because $myVar is never used and the second because
$higher is always overwritten for every possible time line.
Loading history...
29
30
if ($this->config('pay_only_primary') AND $this->action_type() == 'PAY')
31
{
32
$fields['actionType'] = 'PAY_PRIMARY';
33
}
34
35
return $fields;
36
}
37
38
protected function _set_payment_type(array $fields)
39
{
40
$fields = parent::_set_payment_type($fields);
41
42
$order = $this->order();
43
$payment_type = $this->config('payment_type');
44
45
if (isset($payment_type['primary'])
46
AND ($payment_type = $payment_type['primary']))
47
{
48
foreach ($order['receivers'] as $index => $receiver)
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.