| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function createForProvider($providerName, $user, $userProfile) |
||
| 37 | { |
||
| 38 | $userLogin = $this->getNew(); |
||
| 39 | $userLogin->populateFromUser($user); |
||
| 40 | $userLogin->populateFromUserProfile($userProfile); |
||
| 41 | $userLogin->provider_name = $providerName; |
||
| 42 | $userLogin->insert(); |
||
| 43 | |||
| 44 | return $userLogin; |
||
| 45 | } |
||
| 71 |