| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 50 | function __construct($url, $timeout=10, $redirects=5, |
||
| 51 | $headers=null, $useragent=null, $force_fsockopen=false) { |
||
| 52 | $this->http = new DokuHTTPClient(); |
||
| 53 | $this->success = $this->http->sendRequest($url); |
||
| 54 | |||
| 55 | $this->headers = $this->http->resp_headers; |
||
| 56 | $this->body = $this->http->resp_body; |
||
| 57 | $this->error = $this->http->error; |
||
| 58 | |||
| 59 | $this->method = SIMPLEPIE_FILE_SOURCE_REMOTE | SIMPLEPIE_FILE_SOURCE_FSOCKOPEN; |
||
| 60 | |||
| 61 | return $this->success; |
||
| 62 | } |
||
| 63 | |||
| 77 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.