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 ( e3718d...6a7df8 )
by Lester
01:14
created

AirtimeTransferred   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 27
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LBHurtado\EngageSpark\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 AirtimeTransferred
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
16
17
    /** @var string */
18
    public $mobile;
19
20
    /** @var int */
21
    public $amount;
22
23
    /** @var string */
24
    public $reference;
25
26
    /**
27
     * Create a new event instance.
28
     *
29
     * @param string $mobile
30
     * @param int $amount
31
     * @param string $reference
32
     */
33
    public function __construct($this->mobile, $this->amount, $this->reference)
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_OBJECT_OPERATOR, expecting ')'
Loading history...
34
    {
35
        $this->mobile = $mobile;
36
        $this->amount = $amount;
37
        $this->reference = $reference;
38
    }
39
40
    /**
41
     * Get the channels the event should broadcast on.
42
     *
43
     * @return \Illuminate\Broadcasting\Channel|array
44
     */
45
    public function broadcastOn()
46
    {
47
        return new PrivateChannel('channel-name');
48
    }
49
}
50