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.
Completed
Push — master ( 6788fe...0772ae )
by Ash
02:20
created

AnalyticTrackedListener::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AshPowell\APAnalytics\Listeners;
4
5
use AshPowell\APAnalytics\Events\AnalyticTracked;
6
use Illuminate\Queue\InteractsWithQueue;
7
use Illuminate\Contracts\Queue\ShouldQueue;
8
9
use Illuminate\Bus\Queueable;
10
use Illuminate\Database\Eloquent\Collection;
11
use Illuminate\Database\Eloquent\Model;
12
use Illuminate\Foundation\Bus\Dispatchable;
13
use Illuminate\Pagination\LengthAwarePaginator;
14
use Illuminate\Pagination\Paginator;
15
use Illuminate\Queue\SerializesModels;
16
use Illuminate\Support\Facades\DB;
17
use Log;
18
19
class AnalyticTrackedListener
20
{
21
    /**
22
     * The name of the queue the job should be sent to.
23
     *
24
     * @var string|null
25
     */
26
    public $queue = 'analytics';
27
28
    /**
29
     * Create the event listener.
30
     *
31
     * @return void
32
     */
33
    public function __construct()
34
    {
35
        //
36
    }
37
38
    /**
39
     * Handle the event.
40
     *
41
     * @param  AnalyticTracked  $event
42
     * @return void
43
     */
44
    public function handle(AnalyticTracked $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

44
    public function handle(/** @scrutinizer ignore-unused */ AnalyticTracked $event)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
45
    {
46
        dd('fired');
47
    }
48
}
49