UnsplashServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
1
<?php
2
3
namespace shweshi\LaravelUnsplashWrapper\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class UnsplashServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->publishes([
17
            __DIR__.'/../config/unsplash.php' => config_path('unsplash.php'),
0 ignored issues
show
Bug introduced by
The function config_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
            __DIR__.'/../config/unsplash.php' => /** @scrutinizer ignore-call */ config_path('unsplash.php'),
Loading history...
18
        ]);
19
    }
20
}
21