Completed
Push — master ( 080480...7885ae )
by Elf
03:05
created

SupportServiceProvider::configureForCurrentRequest()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 10
ccs 0
cts 6
cp 0
rs 9.4285
cc 2
eloc 3
nc 2
nop 0
crap 6
1
<?php
2
3
namespace ElfSundae\Laravel\Support;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class SupportServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'support');
17
18
        if ($this->app->runningInConsole()) {
19
            $this->publishes([
20
                __DIR__.'/../resources/views' => resource_path('views/vendor/support'),
21
            ], 'laravel-support-views');
22
        }
23
    }
24
25
    /**
26
     * Register the application service.
27
     *
28
     * @return void
29
     */
30
    public function register()
31
    {
32
        if ($this->app->runningInConsole()) {
33
            $this->commands([
34
                Console\IdeHelperGenerateCommand::class,
35
            ]);
36
        }
37
    }
38
}
39