Code Duplication    Length = 15-15 lines in 2 locations

src/Api/Http/Requests/IssueTokenRequest.php 1 location

@@ 7-21 (lines=15) @@
4
5
use Illuminate\Foundation\Http\FormRequest;
6
7
class IssueTokenRequest extends FormRequest
8
{
9
    public function authorize(): bool
10
    {
11
        return true;
12
    }
13
14
    public function rules()
15
    {
16
        return [
17
            'email' => ['required', 'email'],
18
            'password' => ['required', 'string'],
19
        ];
20
    }
21
}
22

src/Backend/Http/Requests/Auth/LoginRequest.php 1 location

@@ 7-21 (lines=15) @@
4
5
use Illuminate\Foundation\Http\FormRequest;
6
7
class LoginRequest extends FormRequest
8
{
9
    public function authorize(): bool
10
    {
11
        return true;
12
    }
13
14
    public function rules()
15
    {
16
        return [
17
            'email' => ['required', 'email'],
18
            'password' => ['required', 'string'],
19
        ];
20
    }
21
}
22