GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

BladeOnDemandServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 11 1
1
<?php
2
3
namespace ProtoneMedia\BladeOnDemand;
4
5
use Illuminate\Mail\Markdown;
6
use Illuminate\Support\ServiceProvider;
7
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
8
9
class BladeOnDemandServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Register the application services.
13
     */
14
    public function register()
15
    {
16
        // Register the main class to use with the facade
17
        $this->app->singleton('laravel-blade-on-demand', function () {
18
            return new BladeOnDemandRenderer(
19
                app('view'),
20
                app(Markdown::class),
21
                app(CssToInlineStyles::class)
22
            );
23
        });
24
    }
25
}
26