AuthenticatesUsers   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A attemptLogin() 0 6 1
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
Bug introduced by
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
}