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 ( 291197...6788fe )
by Ash
03:21
created

TrackAnalytic   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 12
dl 0
loc 35
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A broadcastOn() 0 2 1
A __construct() 0 7 1
1
<?php
2
3
namespace AshPowell\APAnalytics\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Broadcasting\PrivateChannel;
8
use Illuminate\Broadcasting\PresenceChannel;
9
use Illuminate\Foundation\Events\Dispatchable;
10
use Illuminate\Broadcasting\InteractsWithSockets;
11
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
12
13
class TrackAnalytic
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by AshPowell\APAnalytics\Events\TrackAnalytic: $id, $class, $connection, $relations
Loading history...
16
17
    public $mongodb_connection;
18
    public $collection;
19
    public $items;
20
    public $userId;
21
    public $params;
22
23
    /**
24
     * Create a new event instance.
25
     *
26
     * @return void
27
     * @param  mixed $collection
28
     * @param  mixed $items
29
     * @param  mixed $userId
30
     * @param  mixed $params
31
     */
32
    public function __construct($collection, $items, $userId, $params)
33
    {
34
        $this->mongodb_connection = config('apanalytics.db_connection', 'mongodb');
35
        $this->collection         = $collection;
36
        $this->items              = $items;
37
        $this->userId             = $userId;
38
        $this->params             = $params;
39
    }
40
41
    /**
42
     * Get the channels the event should broadcast on.
43
     *
44
     * @return \Illuminate\Broadcasting\Channel|array
45
     */
46
    public function broadcastOn()
47
    {
48
        //$basename = strtolower(class_basename($this->item));
49
        //return new PresenceChannel('analytics.'.$basename.'.'.$this->item->id);
50
    }
51
}
52