| 1 | <?php |
||
| 10 | class Payment_Adaptive_Chained extends Payment_Adaptive_Parallel { |
||
| 11 | |||
| 12 | protected static $_allowed_action_types = array( |
||
| 13 | self::ACTION_TYPE_PAY, |
||
| 14 | self::ACTION_TYPE_CREATE, |
||
| 15 | self::ACTION_TYPE_PAY_PRIMARY, |
||
| 16 | ); |
||
| 17 | |||
| 18 | protected static $_allowed_fees_payer_types = array( |
||
| 19 | self::FEES_PAYER_SENDER, |
||
| 20 | self::FEES_PAYER_PRIMARYRECEIVER, |
||
| 21 | self::FEES_PAYER_EACHRECEIVER, |
||
| 22 | self::FEES_PAYER_SECONDARYONLY |
||
| 23 | ); |
||
| 24 | |||
| 25 | public function fields() |
||
| 37 | |||
| 38 | protected function _set_payment_type(array $fields) |
||
| 60 | } |
||
| 61 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.