|
@@ 387-389 (lines=3) @@
|
| 384 |
|
throw new InvalidArgumentValue('login', $userCreateStruct->login, 'UserCreateStruct'); |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
if (!is_string($userCreateStruct->email) || empty($userCreateStruct->email)) { |
| 388 |
|
throw new InvalidArgumentValue('email', $userCreateStruct->email, 'UserCreateStruct'); |
| 389 |
|
} |
| 390 |
|
|
| 391 |
|
if (!preg_match('/^.+@.+\..+$/', $userCreateStruct->email)) { |
| 392 |
|
throw new InvalidArgumentValue('email', $userCreateStruct->email, 'UserCreateStruct'); |
|
@@ 765-767 (lines=3) @@
|
| 762 |
|
} |
| 763 |
|
|
| 764 |
|
if ($userUpdateStruct->email !== null) { |
| 765 |
|
if (!is_string($userUpdateStruct->email) || empty($userUpdateStruct->email)) { |
| 766 |
|
throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct'); |
| 767 |
|
} |
| 768 |
|
|
| 769 |
|
if (!preg_match('/^.+@.+\..+$/', $userUpdateStruct->email)) { |
| 770 |
|
throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct'); |
|
@@ 774-776 (lines=3) @@
|
| 771 |
|
} |
| 772 |
|
} |
| 773 |
|
|
| 774 |
|
if ($userUpdateStruct->password !== null && (!is_string($userUpdateStruct->password) || empty($userUpdateStruct->password))) { |
| 775 |
|
throw new InvalidArgumentValue('password', $userUpdateStruct->password, 'UserUpdateStruct'); |
| 776 |
|
} |
| 777 |
|
|
| 778 |
|
if ($userUpdateStruct->enabled !== null && !is_bool($userUpdateStruct->enabled)) { |
| 779 |
|
throw new InvalidArgumentValue('enabled', $userUpdateStruct->enabled, 'UserUpdateStruct'); |
|
@@ 869-871 (lines=3) @@
|
| 866 |
|
{ |
| 867 |
|
$loadedUser = $this->loadUser($user->id); |
| 868 |
|
|
| 869 |
|
if ($userTokenUpdateStruct->hashKey !== null && (!is_string($userTokenUpdateStruct->hashKey) || empty($userTokenUpdateStruct->hashKey))) { |
| 870 |
|
throw new InvalidArgumentValue('hashKey', $userTokenUpdateStruct->hashKey, 'UserTokenUpdateStruct'); |
| 871 |
|
} |
| 872 |
|
|
| 873 |
|
if ($userTokenUpdateStruct->time === null) { |
| 874 |
|
throw new InvalidArgumentValue('time', $userTokenUpdateStruct->time, 'UserTokenUpdateStruct'); |