PugServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php namespace Olyckne\Pug;
2
3
use GuzzleHttp\Client;
4
use Illuminate\Support\ServiceProvider;
5
6
class PugServiceProvider extends ServiceProvider {
7
8
    /**
9
     * Register the service provider.
10
     *
11
     * @return void
12
     */
13
    public function register()
14
    {
15
        $this->app->bind('Pug', function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
           return new Pug(new Client);
17
        });
18
    }
19
}
20