Issues (30)

src/LaravelBitpayServiceProvider.php (3 issues)

Labels
Severity
1
<?php
2
3
namespace Vrajroham\LaravelBitpay;
4
5
use Illuminate\Support\Facades\Route;
0 ignored issues
show
The type Illuminate\Support\Facades\Route 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;
0 ignored issues
show
The type Illuminate\Support\ServiceProvider 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...
7
use Vrajroham\LaravelBitpay\Commands\CreateKeypair;
8
9
class LaravelBitpayServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap the application services.
13
     */
14
    public function boot()
15
    {
16
        if ($this->app->runningInConsole()) {
17
            $this->publishes([
18
                __DIR__.'/../config/laravel-bitpay.php' => config_path('laravel-bitpay.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

18
                __DIR__.'/../config/laravel-bitpay.php' => /** @scrutinizer ignore-call */ config_path('laravel-bitpay.php'),
Loading history...
19
            ], 'config');
20
        }
21
22
        $this->defineRoutes();
23
    }
24
25
    /**
26
     * Register the application services.
27
     */
28
    public function register()
29
    {
30
        $this->mergeConfigFrom(__DIR__.'/../config/laravel-bitpay.php', 'laravel-bitpay');
31
        $this->app->bind('command.laravel-bitpay:createkeypair', CreateKeypair::class);
32
        $this->commands([
33
            'command.laravel-bitpay:createkeypair',
34
        ]);
35
    }
36
37
    protected function defineRoutes()
38
    {
39
        if (!$this->app->routesAreCached()) {
40
            Route::group(
41
                ['namespace' => 'Vrajroham\LaravelBitpay\Http\Controllers'],
42
                function ($router) {
43
                    require __DIR__.'/Http/Routes/web.php';
44
                }
45
            );
46
        }
47
    }
48
}
49