Test Failed
Push — stable ( 2b96bd...069022 )
by Nuno
01:58
created

FakeServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Tests;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * This is the Zero Framework composer 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