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.

PushNotificationServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 4
Bugs 2 Features 0
Metric Value
wmc 2
c 4
b 2
f 0
lcom 0
cbo 2
dl 0
loc 32
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 7 1
A register() 0 11 1
1
<?php
2
3
namespace Webelightdev\LaravelPushNotification;
4
5
use Illuminate\Support\ServiceProvider;
6
use Webelightdev\LaravelPushNotification\Classes\LogNotificationClass;
7
use Webelightdev\LaravelPushNotification\Classes\PushNotificationClass;
8
9
class PushNotificationServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap the application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        // Config
19
        $this->publishes([__DIR__.'/../config/push-notification.php' => config_path('push-notification.php')]);
20
        // Migration
21
        $this->publishes([__DIR__.'/../database/migrations' => $this->app->databasePath().'/migrations'], 'migrations');
22
    }
23
24
    /**
25
     * Register the application services.
26
     *
27
     * @return void
28
     */
29
    public function register()
30
    {
31
        // Push Notification Service
32
        $this->app->bind('push-notification', function () {
33
            return new PushNotificationClass();
34
        });
35
        // Log Notification Service
36
        $this->app->bind('log-notification', function () {
37
            return new LogNotificationClass();
38
        });
39
    }
40
}
41