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.

NovaBroadcastMessage::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 5
c 2
b 1
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Coreproc\NovaNotificationFeed\Notifications;
4
5
use Illuminate\Notifications\Messages\BroadcastMessage;
0 ignored issues
show
Bug introduced by
The type Illuminate\Notifications\Messages\BroadcastMessage was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class NovaBroadcastMessage extends BroadcastMessage
8
{
9
    /**
10
     * Create a new message instance.
11
     *
12
     * @param array $data
13
     * @return void
14
     */
15
    public function __construct(array $data)
16
    {
17
        parent::__construct($data);
18
19
        $this->data = [
0 ignored issues
show
Bug Best Practice introduced by
The property data does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
20
            'data' => $data,
21
            'read_at' => null,
22
            'created_at' => now()->toDate(),
0 ignored issues
show
Bug introduced by
The function now was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

22
            'created_at' => /** @scrutinizer ignore-call */ now()->toDate(),
Loading history...
23
        ];
24
    }
25
}
26