| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function sendData($data): IncomingResponse |
||
| 32 | { |
||
| 33 | $signature = $data['signature']; |
||
| 34 | $dataNormalized = explode('|', $data['data']); |
||
| 35 | [$amount, $message, $payment_type, $reference_number, $status, $trans_ref_no, $website_id] = $dataNormalized; |
||
| 36 | $data = compact( |
||
| 37 | 'amount', 'message', 'payment_type', 'reference_number', 'status', 'trans_ref_no', 'website_id' |
||
| 38 | ); |
||
| 39 | $data['signature'] = $signature; |
||
| 40 | |||
| 41 | return parent::sendData($data); |
||
| 42 | } |
||
| 43 | |||
| 52 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.