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 ( 9fa22e...e3cf66 )
by Marceau
03:03
created

CrudServiceProvider::boot()   B

Complexity

Conditions 3
Paths 4

Size

Total Lines 24
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 8.9713
c 0
b 0
f 0
cc 3
eloc 14
nc 4
nop 0
1
<?php
2
3
namespace Akibatech\Crud;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * Class CrudServiceProvider
9
 *
10
 * @package Akibatech\Crud
11
 */
12
class CrudServiceProvider extends ServiceProvider
13
{
14
    /**
15
     * @param   void
16
     * @return  void
17
     */
18
    public function boot()
19
    {
20
        if ($this->app->runningInConsole())
21
        {
22
            $this->publishes([
23
                __DIR__ . '/../resources/lang/' => resource_path('lang/vendor/crud'),
24
            ], 'crud');
25
26
            $this->publishes([
27
                __DIR__ . '/../resources/views/' => resource_path('views/vendor/crud'),
28
            ], 'crud');
29
        }
30
31
        if ($this->app->runningUnitTests())
32
        {
33
            $this->loadViewsFrom(__DIR__ . '/../resources/views/', 'crud');
34
            $this->loadTranslationsFrom(__DIR__ . '/../resources/lang/', 'crud');
35
        }
36
        else
37
        {
38
            $this->loadViewsFrom(resource_path('views/vendor/crud'), 'crud');
39
            $this->loadTranslationsFrom(resource_path('lang/vendor/crud'), 'crud');
40
        }
41
    }
42
43
    /**
44
     * @param   void
45
     * @return  void
46
     */
47
    public function register()
48
    {
49
50
    }
51
}
52