ViewServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A registerBladeCompiler() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Netflie\Componentes\Provider;
4
5
use Netflie\Componentes\Compiler;
6
7
class ViewServiceProvider extends \Illuminate\View\ViewServiceProvider
8
{
9
    /**
10
     * Register the Blade compiler implementation.
11
     *
12
     * @return void
13
     */
14
    public function registerBladeCompiler()
15
    {
16
        $this->app->singleton('blade.compiler', function ($app) {
17
            return new Compiler($app['files'], $app['config']['view.compiled']);
18
        });
19
    }
20
}