HariLiburServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 2
b 0
f 0
1
<?php
2
3
namespace Irfa\HariLibur;
4
5
use Illuminate\Support\ServiceProvider;
0 ignored issues
show
Bug introduced by
The type Illuminate\Support\ServiceProvider was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class HariLiburServiceProvider extends ServiceProvider
8
{
9
    protected $namespace='AppLicenseServer\Controllers';
10
    /**
11
     * Register services.
12
     *
13
     * @return void
14
     */
15
    public function register()
16
    {
17
        
18
    }
19
20
    /**
21
     * Bootstrap services.
22
     *
23
     * @return void
24
     */
25
    public function boot()
26
    {
27
         $this->publishes([
28
            __DIR__.'/../laravel-config/hari_libur.php' => config_path('irfa/hari_libur.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

28
            __DIR__.'/../laravel-config/hari_libur.php' => /** @scrutinizer ignore-call */ config_path('irfa/hari_libur.php'),
Loading history...
29
            __DIR__.'/../src/Data' => resource_path('irfa/php-hari-libur'), ], 'hari-libur');
0 ignored issues
show
Bug introduced by
The function resource_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

29
            __DIR__.'/../src/Data' => /** @scrutinizer ignore-call */ resource_path('irfa/php-hari-libur'), ], 'hari-libur');
Loading history...
30
    }
31
}
32