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] Object parameters should be type hinted - in Tokenable.php, line 37 #1

Open
kduma opened this issue Feb 1, 2015 · 0 comments

Comments

@kduma
Copy link
Collaborator

kduma commented Feb 1, 2015

in Tokenable.php, line 37

The parameter query, which is an object, should be typehinted.

    /**
     * @param $query
     * @param $token
     * @return bool|int
     */
    public function scopeWhereToken($query, $token)
    {
        $hashids = $this->getHashingInstance();
        $id = $hashids->decode($token);

        if(count($id) == 0)

Posted from SensioLabsInsight

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