Completed
Push — master ( f8c81a...7d0174 )
by Brian
03:17 queued 01:35
created

HelloWorldServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 75%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 21
ccs 3
cts 4
cp 0.75
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 4 1
1
<?php
2
3
namespace Bmatovu\HelloWorld;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class HelloWorldServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     * @return void
13
     */
14 1
    public function boot()
15
    {
16
        // ...
17 1
    }
18
19
    /**
20
     * Register the application services.
21
     *
22
     * @return void
23
     */
24 1
    public function register()
25
    {
26
        $this->app->bind('hello-world', function () {
27
            return new HelloWorld();
28 1
        });
29 1
    }
30
}
31