Completed
Push — AddActivityLog ( 5659a6 )
by D.
07:17
created

AppServiceProvider::buildLogComment()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.2
c 0
b 0
f 0
cc 4
eloc 6
nc 3
nop 3
1
<?php
2
3
namespace SET\Providers;
4
5
use Illuminate\Support\Facades\Auth;
6
use Illuminate\Support\ServiceProvider;
7
8
class AppServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap any application services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        //
18
    }
19
20
    /**
21
     * Register any application services.
22
     *
23
     * @return void
24
     */
25
    public function register()
26
    {
27
        if ($this->app->environment() == 'local') {
28
            $this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
29
        }
30
    }
31
32
    private function nullToEmptyString($oldValue, $newValue)
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
33
    {
34
        return $oldValue === null && $newValue == '';
35
    }
36
}
37