LikeServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Hayrullah\Likes;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 *
9
 * @license MIT
10
 * @package Hayrullah/laravel-likes
11
 *
12
 * Copyright @2020 Zaher Khirullah
13
 */
14
class LikeServiceProvider extends ServiceProvider
15
{
16
    /**
17
     * Bootstrap the application services.
18
     *
19
     * @return void
20
     */
21
    public function boot()
22
    {
23
        $this->publishes([
0 ignored issues
show
Bug introduced by
The method publishes() does not exist on Hayrullah\Likes\LikeServiceProvider. ( Ignorable by Annotation )

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

23
        $this->/** @scrutinizer ignore-call */ 
24
               publishes([

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
24
            __DIR__.'/../migrations/create_likes_table.php.stub' => database_path('migrations/'.date('Y_m_d_His').'_create_likes_table.php'),
25
        ], 'migrations');
26
    }
27
28
    /**
29
     * Register the application services.
30
     *
31
     * @return void
32
     */
33
    public function register()
34
    {
35
        //
36
    }
37
}
38