Issues (7)

src/ServiceProviderForLaravelRecent.php (2 issues)

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
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
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