| Conditions | 6 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 42 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function wrapUp() |
||
| 34 | { |
||
| 35 | if ($this->okay && $this->forApi) { |
||
| 36 | return $this->parsePaystackResponse(); |
||
| 37 | } |
||
| 38 | if (!$this->okay && $this->forApi) { |
||
| 39 | throw new Exception($this->implodedMessages()); |
||
| 40 | } |
||
| 41 | if ($this->okay) { |
||
| 42 | error_log($this->implodedMessages()); |
||
| 43 | return $this->body; |
||
| 44 | } |
||
| 45 | return false; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |