BeyonicServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 6
c 1
b 0
f 0
dl 0
loc 20
ccs 7
cts 7
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 6 2
1
<?php
2
3
namespace Bmatovu\Beyonic;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * @see  https://apidocs.beyonic.com
9
 */
10
class BeyonicServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application services.
14
     */
15 4
    public function boot()
16
    {
17 4
        if ($this->app->runningInConsole()) {
18 4
            $this->publishes([
19 4
                __DIR__.'/../config/beyonic.php' => base_path('config/beyonic.php'),
20 4
            ], 'beyonic-config');
21
        }
22
    }
23
24
    /**
25
     * Register the application services.
26
     */
27 4
    public function register()
28
    {
29 4
        $this->mergeConfigFrom(__DIR__.'/../config/beyonic.php', 'beyonic');
30
    }
31
}
32