| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 29 | public function provide(string $email): CustomerInterface  | 
            ||
| 30 |     { | 
            ||
| 31 | $customer = $this->customerRepository->findOneBy(['email' => $email]);  | 
            ||
| 32 | |||
| 33 |         if (null === $customer) { | 
            ||
| 34 | /** @var CustomerInterface $customer */  | 
            ||
| 35 | $customer = $this->customerFactory->createNew();  | 
            ||
| 36 | $customer->setEmail($email);  | 
            ||
| 37 | |||
| 38 | $this->customerRepository->add($customer);  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 | return $customer;  | 
            ||
| 42 | }  | 
            ||
| 43 | }  | 
            ||
| 44 |