AppServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
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