| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class CreateOrUpdateTransactionFromResponse |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param $response |
||
| 17 | * @param $model |
||
| 18 | * @param $type |
||
| 19 | * @return \ByTIC\Payments\Models\Transactions\TransactionTrait|\Nip\Records\AbstractModels\Record |
||
| 20 | */ |
||
| 21 | public static function handle($response, $model, $type) |
||
| 26 | } |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * @param AbstractResponse|ServerCompletePurchaseResponse $response |
||
| 31 | * @param $transaction |
||
| 32 | */ |
||
| 33 | protected static function updateTransaction(AbstractResponse $response, $transaction) |
||
| 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.