PugServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 2
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