| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
||
| 26 | { |
||
| 27 | if ($commandParameters->has('default_scope')) { |
||
| 28 | Assertion::regex($commandParameters->get('default_scope'), '/^[\x20\x23-\x5B\x5D-\x7E]+$/', 'Invalid characters found in the \'default_scope\' parameter.'); |
||
| 29 | $validatedParameters = $validatedParameters->with('default_scope', $commandParameters->get('default_scope')); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $next($commandParameters, $validatedParameters, $userAccountId); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |