GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ProcessSMS::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace LBHurtado\Missive\Jobs;
4
5
use Illuminate\Bus\Queueable;
6
use LBHurtado\Missive\Routing\Router;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Queue\InteractsWithQueue;
9
use LBHurtado\Missive\Classes\SMSAbstract;
10
use Illuminate\Contracts\Queue\ShouldQueue;
11
use Illuminate\Foundation\Bus\Dispatchable;
12
13
class ProcessSMS implements ShouldQueue
14
{
15
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
16
17
    /**
18
     * @var SMSAbstract
19
     */
20
    protected $sms;
21
22
    /**
23
     * ProcessSMS constructor.
24
     * @param SMSAbstract $sms
25
     */
26
    public function __construct(SMSAbstract $sms)
27
    {
28
        $this->sms = $sms;
29
    }
30
31
    /**
32
     * @param Router $router
33
     */
34
    public function handle(Router $router)
35
    {
36
        $router->process($this->sms);
37
    }
38
}
39