Completed
Pull Request — master (#13)
by Michael
02:56
created

LaravelEfficientUuidServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 24
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 6 1
1
<?php
2
3
namespace Dyrynda\Database;
4
5
use Illuminate\Support\ServiceProvider;
6
use Illuminate\Database\Schema\Blueprint;
7
8
class LaravelEfficientUuidServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap any application services.
12
     *
13
     * @return void
14
     */
15 1
    public function boot()
16
    {
17
        //
18 1
    }
19
20
    /**
21
     * Register any application services.
22
     *
23
     * @return void
24
     */
25 1
    public function register()
26
    {
27
        Blueprint::macro('efficientUuid', function ($column) {
28 1
            $this->addColumn('efficientUuid', $column);
0 ignored issues
show
Bug introduced by
The method addColumn() does not seem to exist on object<Dyrynda\Database\...entUuidServiceProvider>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
29 1
        });
30 1
    }
31
}
32