Issues (57)

src/Concerns/AuthenticatesUsers.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Slides\Connector\Auth\Concerns;
4
5
use Illuminate\Http\Request;
6
use Slides\Connector\Auth\Facades\AuthService;
7
use Illuminate\Foundation\Auth\AuthenticatesUsers as BaseAuthenticatesUsers;
8
9
/**
10
 * Trait AuthenticatesUsers
11
 *
12
 * @package Slides\Connector\Auth\Concerns
13
 */
14
trait AuthenticatesUsers
15
{
16
    use BaseAuthenticatesUsers;
17
18
    /**
19
     * Attempt to log the user into the application.
20
     *
21
     * @param \Illuminate\Http\Request $request
22
     *
23
     * @return bool
24
     */
25
    protected function attemptLogin(Request $request)
26
    {
27
        return AuthService::login(
0 ignored issues
show
The method login() does not exist on Slides\Connector\Auth\Facades\AuthService. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

27
        return AuthService::/** @scrutinizer ignore-call */ login(
Loading history...
28
            $request->input($this->username()),
29
            $request->input('password'),
30
            $request->has('remember')
31
        );
32
    }
33
}