| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function handle() |
||
| 41 | { |
||
| 42 | /** @var Token[] $allCreditsBelow */ |
||
| 43 | $allCreditsBelow = Token::where('credits', '<', 50)->get(); |
||
| 44 | |||
| 45 | foreach ($allCreditsBelow as $token) { |
||
| 46 | $this->info('Restock credits for token: '.$token->token); |
||
| 47 | Log::info('Restock credits for token: '.$token->token); |
||
| 48 | $token->credits = 50; |
||
| 49 | $token->save(); |
||
| 50 | } |
||
| 53 |