Passed
Push — master ( c1a112...72443c )
by Syed Abidur
05:15
created

ServiceProviderForLaravelRecent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
A boot() 0 4 1
1
<?php
2
3
namespace Sarahman\HttpRequestApiLog;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class ServiceProviderForLaravelRecent extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application events.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->publishes([
17
            __DIR__.'/config/config.php' => config_path('http-request-api-log.php'),
0 ignored issues
show
Bug introduced by
The function config_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
            __DIR__.'/config/config.php' => /** @scrutinizer ignore-call */ config_path('http-request-api-log.php'),
Loading history...
18
        ]);
19
    }
20
21
    /**
22
     * Register the service provider.
23
     *
24
     * @return void
25
     */
26
    public function register()
27
    {
28
        $app = $this->app;
0 ignored issues
show
Unused Code introduced by
The assignment to $app is dead and can be removed.
Loading history...
29
30
        // merge default config
31
        $this->mergeConfigFrom(
32
            __DIR__.'/config/config.php',
33
            'http-request-api-log'
34
        );
35
    }
36
}
37