|
@@ 372-374 (lines=3) @@
|
| 369 |
|
throw new InvalidArgumentValue('login', $userCreateStruct->login, 'UserCreateStruct'); |
| 370 |
|
} |
| 371 |
|
|
| 372 |
|
if (!is_string($userCreateStruct->email) || empty($userCreateStruct->email)) { |
| 373 |
|
throw new InvalidArgumentValue('email', $userCreateStruct->email, 'UserCreateStruct'); |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
if (!preg_match('/^.+@.+\..+$/', $userCreateStruct->email)) { |
| 377 |
|
throw new InvalidArgumentValue('email', $userCreateStruct->email, 'UserCreateStruct'); |
|
@@ 693-695 (lines=3) @@
|
| 690 |
|
} |
| 691 |
|
|
| 692 |
|
if ($userUpdateStruct->email !== null) { |
| 693 |
|
if (!is_string($userUpdateStruct->email) || empty($userUpdateStruct->email)) { |
| 694 |
|
throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct'); |
| 695 |
|
} |
| 696 |
|
|
| 697 |
|
if (!preg_match('/^.+@.+\..+$/', $userUpdateStruct->email)) { |
| 698 |
|
throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct'); |
|
@@ 702-704 (lines=3) @@
|
| 699 |
|
} |
| 700 |
|
} |
| 701 |
|
|
| 702 |
|
if ($userUpdateStruct->password !== null && (!is_string($userUpdateStruct->password) || empty($userUpdateStruct->password))) { |
| 703 |
|
throw new InvalidArgumentValue('password', $userUpdateStruct->password, 'UserUpdateStruct'); |
| 704 |
|
} |
| 705 |
|
|
| 706 |
|
if ($userUpdateStruct->enabled !== null && !is_bool($userUpdateStruct->enabled)) { |
| 707 |
|
throw new InvalidArgumentValue('enabled', $userUpdateStruct->enabled, 'UserUpdateStruct'); |