| Conditions | 5 |
| Paths | 6 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function verify() |
||
| 34 | { |
||
| 35 | $reference = isset($_GET['reference']) ? $_GET['reference'] : null; |
||
| 36 | if (is_null($reference) || ! is_string($reference)) { |
||
| 37 | die('No Reference'); |
||
| 38 | } |
||
| 39 | try { |
||
| 40 | return $this->performGetRequest($this->verifyUrl.$reference); |
||
| 41 | } catch (Exception $exception) { |
||
| 42 | throw new Exception($exception->getMessage()); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 |