| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function handle(Goldenpay $goldenpay): void |
||
| 31 | { |
||
| 32 | if ($paymentKey = $this->argument('paymentKey')) { |
||
| 33 | $payment = Payment::where('payment_key', $paymentKey)->firstOrFail(); |
||
| 34 | |||
| 35 | $goldenpay->result($payment); |
||
| 36 | |||
| 37 | return; |
||
| 38 | } |
||
| 39 | |||
| 40 | foreach (Payment::wherePending()->cursor() as $payment) { |
||
| 41 | $goldenpay->result($payment); |
||
| 42 | } |
||
| 45 |