|
@@ 703-705 (lines=3) @@
|
| 700 |
|
} |
| 701 |
|
|
| 702 |
|
if ($userUpdateStruct->email !== null) { |
| 703 |
|
if (!is_string($userUpdateStruct->email) || empty($userUpdateStruct->email)) { |
| 704 |
|
throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct'); |
| 705 |
|
} |
| 706 |
|
|
| 707 |
|
if (!preg_match('/^.+@.+\..+$/', $userUpdateStruct->email)) { |
| 708 |
|
throw new InvalidArgumentValue('email', $userUpdateStruct->email, 'UserUpdateStruct'); |
|
@@ 712-714 (lines=3) @@
|
| 709 |
|
} |
| 710 |
|
} |
| 711 |
|
|
| 712 |
|
if ($userUpdateStruct->password !== null && (!is_string($userUpdateStruct->password) || empty($userUpdateStruct->password))) { |
| 713 |
|
throw new InvalidArgumentValue('password', $userUpdateStruct->password, 'UserUpdateStruct'); |
| 714 |
|
} |
| 715 |
|
|
| 716 |
|
if ($userUpdateStruct->enabled !== null && !is_bool($userUpdateStruct->enabled)) { |
| 717 |
|
throw new InvalidArgumentValue('enabled', $userUpdateStruct->enabled, 'UserUpdateStruct'); |
|
@@ 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'); |