BulmaServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 38
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 20 2
A register() 0 4 1
1
<?php
2
3
namespace rustymulvaney\bulma;
4
5
use Illuminate\Support\ServiceProvider;
6
use rustymulvaney\bulma\Commands\InstallCommand;
7
8
class BulmaServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Perform post-registration booting of services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        if ($this->app->runningInConsole()) {
18
            $this->commands([
19
                InstallCommand::class,
20
            ]);
21
        }
22
23
        $this->loadRoutesFrom(__DIR__.'/Routes/routes.php');
24
25
        $this->publishes([
26
            __DIR__.'/../stubs/js'    => resource_path('assets/js'),
27
            __DIR__.'/../stubs/sass'  => resource_path('assets/sass'),
28
            __DIR__.'/../stubs/views' => resource_path('views'),
29
        ], 'install');
30
31
        $this->publishes([
32
            __DIR__.'/../config/bulma.php' => config_path('bulma.php'),
33
        ], 'config');
34
    }
35
36
    /**
37
     * Register any package services.
38
     *
39
     * @return void
40
     */
41
    public function register()
42
    {
43
        //
44
    }
45
}
46