| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function handle(ClientId $clientId, DataBag $commandParameters, DataBag $validatedParameters, callable $next): DataBag |
||
| 25 | { |
||
| 26 | if ($commandParameters->has('client_id_issued_at')) { |
||
| 27 | $validatedParameters = $validatedParameters->with('client_id_issued_at', $commandParameters->get('client_id_issued_at')); |
||
| 28 | } else { |
||
| 29 | $validatedParameters = $validatedParameters->with('client_id_issued_at', time()); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $next($clientId, $commandParameters, $validatedParameters); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |