Completed
Push — master ( 02b77f...45872a )
by Rudy
02:30
created

SocialMapFavoritesServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 32
ccs 0
cts 10
cp 0
rs 10
1
<?php
2
namespace CTL\SocialMapFavorites;
3
4
use Illuminate\Support\ServiceProvider;
5
6
class SocialMapFavoritesServiceProvider extends ServiceProvider {
7
8
  /**
9
   * Bootstrap any application services.
10
   *
11
   * @return void
12
   */
13
  public function boot()
14
  {
15
      $this->loadupCommands();
16
      $this->loadupMigrations()
17
18
  }
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected '}'
Loading history...
19
20
  /**
21
   * Setting up Favorite Command Handlers && ActionableTrait
22
   */
23
  protected function loadupCommands(){
24
    $this->publishes([
25
        __DIR__.'/Commands/FavAUserCommand' => base_path('app/Commands'),
26
    ]);
27
28
    $this->publishes([
29
        __DIR__.'/Commands/unFavAUserCommand' => base_path('app/Commands'),
30
    ]);
31
32
    $this->publishes([
33
        __DIR__.'/Core/Users/' => base_path('Core/Users/'),
34
    ]);
35
36
  }
37
38
  /**
39
   * Setting up migration files
40
   */
41
  protected function loadupMigrations(){
42
    $this->publishes([
43
        __DIR__.'/database' => database_path('migrations'),
44
    ], 'fav_migration');
45
  }
46
47
  /**
48
   * Register any application services.
49
   *
50
   */
51
  public function register()
52
  {
53
    //
54
  }
55
56
57
}
58