Issues (7)

src/Provider.php (3 issues)

Labels
Severity
1
<?php
2
3
namespace Spinzar\SignedUrl;
4
5
use Illuminate\Routing\Router;
0 ignored issues
show
The type Illuminate\Routing\Router was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Illuminate\Support\ServiceProvider;
7
8
class Provider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application events.
12
     */
13
    public function boot(Router $router)
14
    {
15
        $this->publishes([
16
            __DIR__ . '/Config/signed-url.php' => config_path('signed-url.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

16
            __DIR__ . '/Config/signed-url.php' => /** @scrutinizer ignore-call */ config_path('signed-url.php'),
Loading history...
17
        ], 'signed-url');
18
19
        $this->app->singleton('signed-url', function () {
20
            return new SignedUrl();
21
        });
22
23
        $router->aliasMiddleware('signed-url', config('signed-url.middleware'));
0 ignored issues
show
The function config 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

23
        $router->aliasMiddleware('signed-url', /** @scrutinizer ignore-call */ config('signed-url.middleware'));
Loading history...
24
25
        $this->app->alias(SignedUrl::class, 'signed-url');
26
    }
27
28
    /**
29
     * Register the application services.
30
     *
31
     * @return void
32
     */
33
    public function register()
34
    {
35
        $this->mergeConfigFrom(__DIR__ . '/Config/signed-url.php', 'signed-url');
36
    }
37
}
38