Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | public function getFileContents($filename) |
||
7 | { |
||
8 | if (ini_get('allow_url_fopen') && extension_loaded('openssl')) { |
||
9 | |||
10 | return $this->getFileContFopen($filename); |
||
11 | |||
12 | } elseif (extension_loaded('curl')) { |
||
13 | |||
14 | return $this->getFileContCurl($filename); |
||
15 | |||
16 | } else { |
||
17 | |||
18 | return false; |
||
19 | |||
59 |