| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php namespace Modules\User\Services; |
||
| 32 | public function register(array $input) |
||
| 33 | { |
||
| 34 | $this->input = $input; |
||
| 35 | |||
| 36 | $user = $this->createUser(); |
||
| 37 | |||
| 38 | if ($this->hasProfileData()) { |
||
| 39 | $this->createProfileForUser($user); |
||
| 40 | } |
||
| 41 | |||
| 42 | $this->assignUserToUsersGroup($user); |
||
| 43 | |||
| 44 | event(new UserHasRegistered($user)); |
||
| 45 | |||
| 46 | return $user; |
||
| 47 | } |
||
| 48 | |||
| 80 |