Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | protected static function updateTransaction(AbstractResponse $response, $transaction) |
||
34 | { |
||
35 | $code = $response->getCode(); |
||
36 | if ($code) { |
||
37 | $transaction->code = $code; |
||
38 | } |
||
39 | |||
40 | $reference = $response->getTransactionReference(); |
||
41 | if ($reference) { |
||
42 | $transaction->reference = $reference; |
||
43 | } |
||
44 | |||
45 | $transaction->update(); |
||
46 | } |
||
47 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.