Test Failed
Pull Request — stable (#303)
by Sander
07:26
created

CommandRecorderServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of Laravel Zero.
7
 *
8
 * (c) Nuno Maduro <[email protected]>
9
 * (c) Sander van Hooft <[email protected]>
10
 *
11
 *  For the full copyright and license information, please view the LICENSE
12
 *  file that was distributed with this source code.
13
 */
14
15
namespace LaravelZero\Framework\Providers\CommandRecorder;
16
17
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
18
19
final class CommandRecorderServiceProvider extends BaseServiceProvider
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function register(): void
25
    {
26
        $this->app->singleton(CommandRecorder::class, function () {
27
                return new CommandRecorder;
28
            }
29
        );
30
    }
31
}
32