HubspotEmailServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 11 2
A register() 0 2 1
1
<?php
2
3
namespace Datomatic\LaravelHubspotEmailNotificationChannel;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class HubspotEmailServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot(): void
13
    {
14
        if ($this->app->runningUnitTests()) {
15
            $this->loadViewsFrom(__DIR__ . '/../resources/views', 'hubspot-engagement');
16
        }
17
18
        $this->mergeConfigFrom(__DIR__ . '/../config/hubspot.php', 'hubspot');
19
20
        $this->publishes(
21
            [
22
                __DIR__ . '/../config/hubspot.php' => config_path('hubspot.php'),
23
            ]
24
        );
25
    }
26
27
    /**
28
     * Register the application services.
29
     */
30
    public function register()
31
    {
32
    }
33
}
34