PdfOptimizerServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 2
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 4
rs 10
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