Code Duplication    Length = 3-3 lines in 3 locations

eZ/Publish/Core/Repository/UserService.php 3 locations

@@ 391-393 (lines=3) @@
388
            throw new InvalidArgumentValue('login', $userCreateStruct->login, 'UserCreateStruct');
389
        }
390
391
        if (!is_string($userCreateStruct->email) || empty($userCreateStruct->email)) {
392
            throw new InvalidArgumentValue('email', $userCreateStruct->email, 'UserCreateStruct');
393
        }
394
395
        if (!preg_match('/^.+@.+\..+$/', $userCreateStruct->email)) {
396
            throw new InvalidArgumentValue('email', $userCreateStruct->email, 'UserCreateStruct');
@@ 775-777 (lines=3) @@
772
        }
773
774
        if ($userUpdateStruct->email !== null) {
775
            if (!is_string($userUpdateStruct->email) || empty($userUpdateStruct->email)) {
776
                throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct');
777
            }
778
779
            if (!preg_match('/^.+@.+\..+$/', $userUpdateStruct->email)) {
780
                throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct');
@@ 793-795 (lines=3) @@
790
        }
791
792
        if ($userUpdateStruct->password !== null) {
793
            if (!is_string($userUpdateStruct->password) || empty($userUpdateStruct->password)) {
794
                throw new InvalidArgumentValue('password', $userUpdateStruct->password, 'UserUpdateStruct');
795
            }
796
797
            $userContentType = $this->repository->getContentTypeService()->loadContentType(
798
                $user->contentInfo->contentTypeId