| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 7 | public function sendData($data) |
|
| 32 | { |
||
| 33 | 7 | if (! Signature::isValid($data, $this->getPassword(), $this->httpClient)) { |
|
| 34 | 3 | throw new InvalidRequestException('The signature is invalid.'); |
|
| 35 | } |
||
| 36 | |||
| 37 | 4 | $this->response = new AcceptNotificationResponse($this, $this->parseData($data['data'])); |
|
| 38 | |||
| 39 | 3 | return $this->response; |
|
| 40 | } |
||
| 41 | |||
| 57 |