| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 29 | public function match(RuleScope $scope): bool |
||
| 30 | { |
||
| 31 | if (!$scope instanceof CheckoutRuleScope) { |
||
| 32 | return false; |
||
| 33 | } |
||
| 34 | |||
| 35 | $customer = $scope->getSalesChannelContext()->getCustomer(); |
||
| 36 | |||
| 37 | $loggedIn = $customer !== null; |
||
| 38 | |||
| 39 | return $this->isLoggedIn === $loggedIn; |
||
| 40 | } |
||
| 55 |