MailCareController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace BeyondCode\Mailbox\Http\Controllers;
4
5
use BeyondCode\Mailbox\Facades\Mailbox;
6
use BeyondCode\Mailbox\Http\Requests\MailCareRequest;
7
use Illuminate\Routing\Controller;
8
9
class MailCareController extends Controller
10
{
11
    public function __construct()
12
    {
13
        $this->middleware('laravel-mailbox');
14
    }
15
16
    public function __invoke(MailCareRequest $request)
17
    {
18
        Mailbox::callMailboxes($request->email());
0 ignored issues
show
Bug introduced by
The method callMailboxes() does not exist on BeyondCode\Mailbox\Facades\Mailbox. 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

18
        Mailbox::/** @scrutinizer ignore-call */ 
19
                 callMailboxes($request->email());
Loading history...
19
    }
20
}
21