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.
Passed
Push — master ( 6f8b1f...142a48 )
by James
25:51 queued 11:45
created

app/Events/RequestedReportOnJournals.php (1 issue)

Severity
1
<?php
2
3
/**
4
 * RequestedReportOnJournals.php
5
 * Copyright (c) 2018 [email protected]
6
 *
7
 * This file is part of Firefly III.
8
 *
9
 * Firefly III is free software: you can redistribute it and/or modify
10
 * it under the terms of the GNU General Public License as published by
11
 * the Free Software Foundation, either version 3 of the License, or
12
 * (at your option) any later version.
13
 *
14
 * Firefly III is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
21
 */
22
23
declare(strict_types=1);
24
/**
25
 * RequestedReportOnJournals.php
26
 * Copyright (c) 2018 [email protected]
27
 *
28
 * This file is part of Firefly III.
29
 *
30
 * Firefly III is free software: you can redistribute it and/or modify
31
 * it under the terms of the GNU General Public License as published by
32
 * the Free Software Foundation, either version 3 of the License, or
33
 * (at your option) any later version.
34
 *
35
 * Firefly III is distributed in the hope that it will be useful,
36
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
37
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38
 * GNU General Public License for more details.
39
 *
40
 * You should have received a copy of the GNU General Public License
41
 * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
42
 */
43
44
namespace FireflyIII\Events;
45
46
use Illuminate\Broadcasting\Channel;
47
use Illuminate\Broadcasting\InteractsWithSockets;
48
use Illuminate\Broadcasting\PrivateChannel;
49
use Illuminate\Foundation\Events\Dispatchable;
50
use Illuminate\Queue\SerializesModels;
51
use Illuminate\Support\Collection;
52
use Log;
53
54
/**
55
 * Class RequestedReportOnJournals
56
 *
57
 * @codeCoverageIgnore
58
 */
59
class RequestedReportOnJournals
60
{
61
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by FireflyIII\Events\RequestedReportOnJournals: $id, $relations, $class, $connection, $keyBy
Loading history...
62
63
    /** @var Collection The journals to report on. */
64
    public $journals;
65
    /** @var int The ID of the user. */
66
    public $userId;
67
68
    /**
69
     * Create a new event instance.
70
     *
71
     * @param int        $userId
72
     * @param Collection $journals
73
     */
74
    public function __construct(int $userId, Collection $journals)
75
    {
76
        Log::debug('In event RequestedReportOnJournals.');
77
        $this->userId   = $userId;
78
        $this->journals = $journals;
79
    }
80
81
    /**
82
     * Get the channels the event should broadcast on.
83
     *
84
     * @return Channel|array
85
     */
86
    public function broadcastOn()
87
    {
88
        return new PrivateChannel('channel-name');
89
    }
90
}
91