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.

Notifiable::routeNotificationForSlack()   A
last analyzed

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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace ProtoneMedia\ApiHealth\Notifications;
4
5
use Illuminate\Notifications\RoutesNotifications;
6
7
class Notifiable
8
{
9
    use RoutesNotifications;
0 ignored issues
show
Bug introduced by
The trait Illuminate\Notifications\RoutesNotifications requires the property $email which is not provided by ProtoneMedia\ApiHealth\Notifications\Notifiable.
Loading history...
10
11
    /**
12
     * Returns the configured email address.
13
     *
14
     * @return null|string
15
     */
16
    public function routeNotificationForMail()
17
    {
18
        return config('api-health.notifications.mail.to');
19
    }
20
21
    /**
22
     * Returns the webhook url for slack.
23
     *
24
     * @return null|string
25
     */
26
    public function routeNotificationForSlack()
27
    {
28
        return config('api-health.notifications.slack.webhook_url');
29
    }
30
31
    /**
32
     * An identifier for this notifiable class.
33
     *
34
     * @return string
35
     */
36
    public function getKey()
37
    {
38
        return 'laravel-api-health';
39
    }
40
}
41