Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
amouhzi opened this issue Feb 13, 2015 · 0 comments

Comments

@amouhzi
Copy link
Member

amouhzi commented Feb 13, 2015

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

@amouhzi amouhzi closed this as completed Mar 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant