LaravelN11ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 9 1
1
<?php
2
3
namespace Onurkacmaz\LaravelN11;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaravelN11ServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        $this->publishes([
15
            __DIR__.'/../config/laravel-n11.php' => config_path('laravel-n11.php'),
16
        ], 'config');
17
    }
18
19
    /**
20
     * Register the application services.
21
     */
22
    public function register()
23
    {
24
        $this->app->singleton(LaravelN11ServiceProvider::class, function (Application $app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
            return new LaravelN11ServiceProvider();
26
        });
27
        $this->mergeConfigFrom(
28
            __DIR__.'/../config/laravel-n11.php', 'laravel-n11'
29
        );
30
    }
31
}
32