AppServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 24
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A register() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
5
/**
6
 * AppServiceProvider.php
7
 * Copyright (c) 2020 [email protected]
8
 *
9
 * This file is part of the Firefly III CSV importer
10
 * (https://github.com/firefly-iii/csv-importer).
11
 *
12
 * This program is free software: you can redistribute it and/or modify
13
 * it under the terms of the GNU Affero General Public License as
14
 * published by the Free Software Foundation, either version 3 of the
15
 * License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU Affero General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU Affero General Public License
23
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
24
 */
25
26
namespace App\Providers;
27
28
use App\Support\Steam;
29
use Illuminate\Support\ServiceProvider;
30
31
/**
32
 * Class AppServiceProvider
33
 */
34
class AppServiceProvider extends ServiceProvider
35
{
36
    /**
37
     * Register any application services.
38
     *
39
     * @return void
40
     */
41
    public function register(): void
42
    {
43
        $this->app->bind(
44
            'steam',
45
            static function () {
46
                return new Steam;
47
            }
48
        );
49
    }
50
51
    /**
52
     * Bootstrap any application services.
53
     *
54
     * @return void
55
     */
56
    public function boot(): void
57
    {
58
        //
59
    }
60
}
61