| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public static function deletePad($padId, $apiKey, $host = 'http://localhost:9001') |
||
| 17 | { |
||
| 18 | $client = new Client($apiKey, $host); |
||
| 19 | try { |
||
| 20 | $response = $client->deletePad($padId); |
||
| 21 | } catch (\Exception $e) { |
||
| 22 | return false; |
||
| 23 | } |
||
| 24 | |||
| 25 | if ($response->getCode() == Response::CODE_OK) { |
||
| 26 | return true; |
||
| 27 | } else { |
||
| 28 | return false; |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 76 |