| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
||
| 40 | { |
||
| 41 | if ($commandParameters->has('scope_policy')) { |
||
| 42 | Assertion::true($this->scopePolicyManager->has($commandParameters->get('scope_policy')), sprintf('The scope policy \'%s\' is not supported.', $commandParameters->get('scope_policy'))); |
||
| 43 | $validatedParameters = $validatedParameters->with('scope_policy', $commandParameters->get('scope_policy')); |
||
| 44 | } |
||
| 45 | |||
| 46 | return $next($commandParameters, $validatedParameters, $userAccountId); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |