| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function wherePending(): PaymentQueryBuilder |
||
| 32 | { |
||
| 33 | return $this |
||
| 34 | ->where(function (Builder $query) { |
||
| 35 | $query->whereNull('status') |
||
| 36 | ->orWhere('status', '<>', Payment::STATUS_SUCCESSFUL); |
||
| 37 | }) |
||
| 38 | ->where(function (Builder $query) { |
||
| 39 | $query->where('checks', '<', Payment::MINIMUM_REQUIRED_CHECKS) |
||
| 40 | ->orWhere('created_at', '>=', Carbon::now()->subMinutes(30)); |
||
| 41 | }); |
||
| 44 |