Test Failed
Push — stable ( 3dce26...5f781e )
by Nuno
04:12
created

FakeServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 9 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * This is the Laravel Zero Framework fake service provider class.
9
 *
10
 * @author Nuno Maduro <[email protected]>
11
 */
12
class FakeServiceProvider extends ServiceProvider
13
{
14
    /**
15
     * Register composer service.
16
     *
17
     * @return void
18
     */
19
    public function register(): void
20
    {
21
        $this->app->bind(
22
            'foo',
23
            function () {
24
                return 'bar';
25
            }
26
        );
27
    }
28
}
29