PaystackSubscriptionsTileServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 15 2
1
<?php
2
3
namespace Digikraaft\PaystackSubscriptionsTile;
4
5
use Illuminate\Support\ServiceProvider;
6
use Livewire\Livewire;
7
8
class PaystackSubscriptionsTileServiceProvider extends ServiceProvider
9
{
10
    public function boot()
11
    {
12
        if ($this->app->runningInConsole()) {
13
            $this->commands([
14
                FetchSubscriptionsDataFromPaystackApi::class,
15
            ]);
16
        }
17
18
        $this->publishes([
19
            __DIR__ . '/../resources/views' => resource_path('views/vendor/paystack-subscriptions-tile'),
0 ignored issues
show
Bug introduced by
The function resource_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

19
            __DIR__ . '/../resources/views' => /** @scrutinizer ignore-call */ resource_path('views/vendor/paystack-subscriptions-tile'),
Loading history...
20
        ], 'paystack-subscriptions-tile-views');
21
22
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'dashboard-paystack-subscriptions-tile');
23
24
        Livewire::component('paystack-subscriptions-tile', PaystackSubscriptionsTileComponent::class);
25
    }
26
}
27