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 ( e97bb7...5f2eb5 )
by Pascal
10:40 queued 09:38
created

Notifiable   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 34
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 ProtoneMedia\ApiHealth\Notifications;
4
5
use Illuminate\Notifications\RoutesNotifications;
6
7
class Notifiable
8
{
9
    use RoutesNotifications;
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