BBCodeParserServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 32
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
A provides() 0 4 1
1
<?php namespace Golonka\BBCode;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class BBCodeParserServiceProvider extends ServiceProvider
6
{
7
8
    /**
9
     * Indicates if loading of the provider is deferred.
10
     *
11
     * @var bool
12
     */
13
    protected $defer = true;
14
15
    /**
16
     * Register the service provider.
17
     *
18
     * @return void
19
     */
20
    public function register()
21
    {
22
        $this->app->bind('bbcode', function () {
23
            return new BBCodeParser;
24
        });
25
    }
26
27
    /**
28
     * Get the services provided by the provider.
29
     *
30
     * @return array
31
     */
32
    public function provides()
33
    {
34
        return ['bbcode'];
35
    }
36
}
37