AppServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 10 1
1
<?php
2
3
namespace PHPHub\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Naux\AutoCorrect;
7
use Parsedown;
8
9
class AppServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap any application services.
13
     */
14
    public function boot()
15
    {
16
        //
17
    }
18
19
    /**
20
     * Register any application services.
21
     */
22
    public function register()
23
    {
24
        $this->app->singleton('auto-correct', function () {
25
             return new AutoCorrect();
26
         });
27
28
        $this->app->singleton('markdown', function () {
29
            return new Parsedown();
30
        });
31
    }
32
}
33