InboxServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 4 1
1
<?php
2
3
namespace Evilnet\Inbox;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class InboxServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Perform post-registration booting of services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        include __DIR__.'/routes.php';
17
          $this->publishes([
18
            __DIR__ . '/migrations' => $this->app->databasePath() . '/migrations'
0 ignored issues
show
Bug introduced by
The method databasePath() does not exist on Illuminate\Contracts\Foundation\Application. Did you maybe mean basePath()? ( Ignorable by Annotation )

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

18
            __DIR__ . '/migrations' => $this->app->/** @scrutinizer ignore-call */ databasePath() . '/migrations'

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...
19
        ], 'migrations');
20
21
    }
22
23
    /**
24
     * Register any package services.
25
     *
26
     * @return void
27
     */
28
    public function register()
29
    {
30
        $this->app->make('Evilnet\Inbox\InboxController');
31
        $this->loadViewsFrom(__DIR__.'/views', 'inbox');
32
    }
33
}
34