PayableRedirectServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 16 1
A register() 0 4 1
1
<?php
2
3
namespace SanderVanHooft\PayableRedirect;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class PayableRedirectServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Perform post-registration booting of services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        // Publish a config file
17
        $this->publishes([
18
            __DIR__.'/../config/payable.php' => config_path('payable.php'),
19
        ], 'config');
20
21
        // Publish migrations
22
            $this->publishes([
23
                __DIR__.'/../database/migrations/2017_05_11_163005_create_payments_table.php'
24
                => database_path('migrations/2017_05_11_163005_create_payments_table.php'),
25
            ], 'migrations');
26
27
            // Load routes
28
            $this->loadRoutesFrom(__DIR__.'/../routes/web.php');
29
    }
30
31
    /**
32
     * Register any package services.
33
     *
34
     * @return void
35
     */
36
    public function register()
37
    {
38
        //
39
    }
40
}
41