PdfOptimizerServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 4 2
1
<?php
2
3
namespace Mostafaznv\PdfOptimizer;
4
5
use Illuminate\Support\ServiceProvider;
6
7
8
class PdfOptimizerServiceProvider extends ServiceProvider
9
{
10
    public function boot(): void
11
    {
12
        if ($this->app->runningInConsole()) {
13
            $this->publishes([__DIR__ . '/../config/config.php' => config_path('pdf-optimizer.php')], 'config');
14
        }
15
    }
16
17
    public function register(): void
18
    {
19
        $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'pdf-optimizer');
20
    }
21
}
22