Code Duplication    Length = 4-4 lines in 3 locations

src/BenGorUser/User/Infrastructure/Persistence/SqlUserRepository.php 3 locations

@@ 330-333 (lines=4) @@
327
            : new \DateTimeImmutable($row['last_login']);
328
329
        $confirmationToken = null;
330
        if (null !== $row['confirmation_token_token']) {
331
            $confirmationToken = new UserToken($row['confirmation_token_token']);
332
            $this->set($confirmationToken, 'createdOn', new \DateTimeImmutable($row['confirmation_token_created_on']));
333
        }
334
        $invitationToken = null;
335
        if (null !== $row['invitation_token_token']) {
336
            $invitationToken = new UserToken($row['invitation_token_token']);
@@ 335-338 (lines=4) @@
332
            $this->set($confirmationToken, 'createdOn', new \DateTimeImmutable($row['confirmation_token_created_on']));
333
        }
334
        $invitationToken = null;
335
        if (null !== $row['invitation_token_token']) {
336
            $invitationToken = new UserToken($row['invitation_token_token']);
337
            $this->set($invitationToken, 'createdOn', new \DateTimeImmutable($row['invitation_token_created_on']));
338
        }
339
        $rememberPasswordToken = null;
340
        if (null !== $row['remember_password_token_token']) {
341
            $rememberPasswordToken = new UserToken($row['remember_password_token_token']);
@@ 340-343 (lines=4) @@
337
            $this->set($invitationToken, 'createdOn', new \DateTimeImmutable($row['invitation_token_created_on']));
338
        }
339
        $rememberPasswordToken = null;
340
        if (null !== $row['remember_password_token_token']) {
341
            $rememberPasswordToken = new UserToken($row['remember_password_token_token']);
342
            $this->set($rememberPasswordToken, 'createdOn', new \DateTimeImmutable($row['remember_password_token_created_on']));
343
        }
344
345
        $user = User::signUp(
346
            new UserId($row['id']),