| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getEmail() |
||
| 23 | { |
||
| 24 | $userAttributes = $this->getUserAttributes(); |
||
| 25 | |||
| 26 | if (isset($userAttributes['email-address'])) { |
||
| 27 | return $userAttributes['email-address']; |
||
| 28 | } |
||
| 29 | |||
| 30 | if (isset($userAttributes['email'])) { |
||
| 31 | return $userAttributes['email']; |
||
| 32 | } |
||
| 33 | |||
| 34 | return null; |
||
| 35 | } |
||
| 36 | |||
| 46 |