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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A routeNotificationForMail() 0 4 1
A routeNotificationForSlack() 0 4 1
A getKey() 0 4 1
1
<?php
2
3
namespace Spatie\UptimeMonitor\Notifications;
4
5
use Illuminate\Notifications\Notifiable as NotifiableTrait;
6
7
class Notifiable
8
{
9
    use NotifiableTrait;
10
11
    /**
12
     * @return string|null
13
     */
14
    public function routeNotificationForMail()
15
    {
16
        return config('uptime-monitor.notifications.mail.to');
17
    }
18
19
    /**
20
     * @return string|null
21
     */
22
    public function routeNotificationForSlack()
23
    {
24
        return config('uptime-monitor.notifications.slack.webhook_url');
25
    }
26
27
    public function getKey(): string
28
    {
29
        return static::class;
30
    }
31
}
32