php-mod/curl

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

amouhzi opened this issue · 0 comments

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