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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 40
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
B boot() 0 24 3
A register() 0 4 1
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