|
@@ 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'); |