php-mod / curl

This library provides an object-oriented and dependency free wrapper of the PHP cURL extension.
MIT License
328 stars 120 forks source link

[Insight] PHP code should follow PSR-1 basic coding standard - in src/Curl/Curl.php, line 162 #10

Closed amouhzi closed 9 years ago

amouhzi commented 9 years ago

in src/Curl/Curl.php, line 162

Method names should be declared in camelCase. You should rename this method to comply with PSR-1.

        $this->response_headers = null;
        $this->response = null;
        $this->init();
    }

    public function _exec()
    {
        $this->response = curl_exec($this->curl);
        $this->curl_error_code = curl_errno($this->curl);
        $this->curl_error_message = curl_error($this->curl);
        $this->curl_error = !($this->curl_error_code === 0);

Posted from SensioLabsInsight