SendGridController::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace BeyondCode\Mailbox\Http\Controllers;
4
5
use BeyondCode\Mailbox\Facades\Mailbox;
6
use BeyondCode\Mailbox\Http\Requests\SendGridRequest;
7
use Illuminate\Routing\Controller;
8
9
class SendGridController extends Controller
10
{
11
    public function __construct()
12
    {
13
        $this->middleware('laravel-mailbox');
14
    }
15
16
    public function __invoke(SendGridRequest $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