Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
61 | protected function SSLOptions() |
||
62 | { |
||
63 | if ($this->config['VerifySSL']) { |
||
64 | if (file_exists(base_path($this->config['PEM']))) { |
||
65 | return ['verify' => $this->config['PEM']]; |
||
66 | } else { |
||
67 | // TODO - Error Handling |
||
68 | throw new \RuntimeException('PEM Certificate does not exist'); |
||
69 | } |
||
70 | } |
||
71 | return ['verify' => false]; |
||
72 | } |
||
98 | } |