| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | 3 | public function hasNoBlockedEmail($email) |
|
| 28 | { |
||
| 29 | 3 | $response = $this->client->get(['contactstatistics', $email]); |
|
| 30 | 3 | if (!$response->success()) { |
|
| 31 | 1 | return 'error'; |
|
| 32 | } |
||
| 33 | 2 | $blockedCount = $response->getBody(); |
|
| 34 | 2 | if ($blockedCount['Data'][0]['BlockedCount']) { |
|
| 35 | 1 | return false; |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | return true; |
|
| 39 | } |
||
| 40 | } |
||
| 41 |