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.

DevicesServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Coreproc\Devices;
4
5
use Coreproc\Devices\Http\Middleware\StoreDevice;
6
use Illuminate\Support\ServiceProvider;
7
8
class DevicesServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        $this->publishes([
16
            __DIR__ . '/../database/migrations' => database_path('migrations'),
17
        ], 'migrations');
18
19
        // Publish config file
20
        $this->publishes([
21
            __DIR__ . '/../config/devices.php' => config_path('devices.php'),
22
        ], 'config');
23
24
        // Register middleware
25
        $router = $this->app['router'];
26
27
        $router->aliasMiddleware('store.device', StoreDevice::class);
28
    }
29
30
    /**
31
     * Register the application services.
32
     */
33
    public function register()
34
    {
35
        $this->mergeConfigFrom(__DIR__ . '/../config/devices.php', 'devices');
36
    }
37
}
38