Completed
Branch master (d19b6f)
by Jonathan
08:09
created
app/Providers/EventServiceProvider.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -9,29 +9,29 @@
 block discarded – undo
9 9
  */
10 10
 class EventServiceProvider extends DefaultEventServiceProvider
11 11
 {
12
-  /**
12
+    /**
13 13
      * The event listener mappings for the application.
14 14
      *
15 15
      * @var array
16 16
      */
17 17
     protected $listen = [
18
-      'Uccello\Core\Events\AfterSaveEvent' => [
19
-          'Uccello\Core\Listeners\Profile\AfterSaveEventListener',
20
-          'Uccello\Core\Listeners\Role\AfterSaveEventListener',
21
-          'Uccello\Core\Listeners\User\AfterSaveEventListener',
22
-          'Uccello\Core\Listeners\Domain\AfterSaveEventListener',
23
-      ],
24
-  ];
18
+        'Uccello\Core\Events\AfterSaveEvent' => [
19
+            'Uccello\Core\Listeners\Profile\AfterSaveEventListener',
20
+            'Uccello\Core\Listeners\Role\AfterSaveEventListener',
21
+            'Uccello\Core\Listeners\User\AfterSaveEventListener',
22
+            'Uccello\Core\Listeners\Domain\AfterSaveEventListener',
23
+        ],
24
+    ];
25 25
 
26
-  /**
27
-   * Register any events for your application.
28
-   *
29
-   * @return void
30
-   */
31
-  public function boot()
32
-  {
33
-      parent::boot();
26
+    /**
27
+     * Register any events for your application.
28
+     *
29
+     * @return void
30
+     */
31
+    public function boot()
32
+    {
33
+        parent::boot();
34 34
 
35
-      //
36
-  }
35
+        //
36
+    }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -12,34 +12,34 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class AppServiceProvider extends ServiceProvider
14 14
 {
15
-  /**
16
-   * Indicates if loading of the provider is deferred.
17
-   *
18
-   * @var bool
19
-   */
20
-  protected $defer = false;
15
+    /**
16
+     * Indicates if loading of the provider is deferred.
17
+     *
18
+     * @var bool
19
+     */
20
+    protected $defer = false;
21 21
 
22
-  public function boot()
23
-  {
22
+    public function boot()
23
+    {
24 24
     // For compatibility
25 25
     Schema::defaultStringLength(191);
26 26
 
27 27
     // Config
28 28
     $this->publishes([
29
-      __DIR__ . '/../../config/uccello.php' => config_path('uccello.php'),
29
+        __DIR__ . '/../../config/uccello.php' => config_path('uccello.php'),
30 30
     ], 'config');
31 31
 
32 32
     // Views
33 33
     $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'uccello');
34 34
     $this->publishes([
35
-      __DIR__ . '/../../resources/views' => resource_path('views/vendor/uccello')
35
+        __DIR__ . '/../../resources/views' => resource_path('views/vendor/uccello')
36 36
     ], 'views');
37 37
 
38 38
     // Publish assets
39 39
     $this->publishes([
40
-      __DIR__ . '/../../public' => public_path('vendor/uccello/uccello'),
41
-      __DIR__ . '/../../public/fonts/vendor' => public_path('fonts/vendor'),
42
-      __DIR__ . '/../../public/images/vendor' => public_path('images/vendor')
40
+        __DIR__ . '/../../public' => public_path('vendor/uccello/uccello'),
41
+        __DIR__ . '/../../public/fonts/vendor' => public_path('fonts/vendor'),
42
+        __DIR__ . '/../../public/images/vendor' => public_path('images/vendor')
43 43
     ], 'assets');
44 44
 
45 45
     // Translations
@@ -50,23 +50,23 @@  discard block
 block discarded – undo
50 50
 
51 51
     // Commands
52 52
     if ($this->app->runningInConsole()) {
53
-      $this->commands([
53
+        $this->commands([
54 54
         UccelloInstallCommand::class,
55
-      ]);
55
+        ]);
56
+    }
56 57
     }
57
-  }
58 58
 
59
-  public function register()
60
-  {
59
+    public function register()
60
+    {
61 61
     // Config
62 62
     $this->mergeConfigFrom(
63
-      __DIR__ . '/../../config/uccello.php',
64
-      'uccello'
63
+        __DIR__ . '/../../config/uccello.php',
64
+        'uccello'
65 65
     );
66 66
 
67 67
     // Helper
68 68
     App::bind('uccello', function () {
69
-      return new \Uccello\Core\Helpers\Uccello;
69
+        return new \Uccello\Core\Helpers\Uccello;
70 70
     });
71
-  }
71
+    }
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -12,33 +12,33 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class RouteServiceProvider extends DefaultRouteServiceProvider
14 14
 {
15
-  /**
16
-   * @inheritDoc
17
-   */
18
-  public function boot()
19
-  {
15
+    /**
16
+     * @inheritDoc
17
+     */
18
+    public function boot()
19
+    {
20 20
     parent::boot();
21 21
 
22 22
     // Bind domain
23 23
     Route::bind('domain', function ($value) {
24
-      return Domain::where('slug', $value)->first() ?? abort(404);
24
+        return Domain::where('slug', $value)->first() ?? abort(404);
25 25
     });
26 26
 
27 27
     // Bind module
28 28
     Route::bind('module', function ($value) {
29
-      return Module::where('name', $value)->first() ?? abort(404);
29
+        return Module::where('name', $value)->first() ?? abort(404);
30 30
     });
31
-  }
31
+    }
32 32
 
33
-  /**
34
-   * @inheritDoc
35
-   */
36
-  public function map()
37
-  {
33
+    /**
34
+     * @inheritDoc
35
+     */
36
+    public function map()
37
+    {
38 38
     parent::map();
39 39
 
40 40
     $this->mapUccelloRoutes();
41
-  }
41
+    }
42 42
 
43 43
     /**
44 44
      * Define "uccello" routes for the application.
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected function mapUccelloRoutes()
49 49
     {
50
-      // API
51
-      Route::prefix('api')
52
-          ->middleware('api')
53
-          ->namespace('Uccello\Core\Http\Controllers') // We prefer to do this instead of modifying $this->namespace, else LoginController is not find
54
-          ->group(__DIR__.'/../../routes/api.php');
55
-
56
-      // Web
57
-      Route::middleware('web', 'auth')
50
+        // API
51
+        Route::prefix('api')
52
+            ->middleware('api')
53
+            ->namespace('Uccello\Core\Http\Controllers') // We prefer to do this instead of modifying $this->namespace, else LoginController is not find
54
+            ->group(__DIR__.'/../../routes/api.php');
55
+
56
+        // Web
57
+        Route::middleware('web', 'auth')
58 58
             ->namespace('Uccello\Core\Http\Controllers') // We prefer to do this instead of modifying $this->namespace, else LoginController is not find
59 59
             ->group(__DIR__.'/../../routes/web.php');
60 60
     }
Please login to merge, or discard this patch.
config/uccello.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-  'skin' => 'uccello',
4
+    'skin' => 'uccello',
5 5
 ];
Please login to merge, or discard this patch.