@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | // Publishing the configuration file. |
| 65 | 65 | echo "Publishing StarterKit Config ...\n"; |
| 66 | 66 | $this->publishes([ |
| 67 | - __DIR__ . '/../config/starter-kit.php' => config_path('starter-kit.php'), |
|
| 67 | + __DIR__.'/../config/starter-kit.php' => config_path('starter-kit.php'), |
|
| 68 | 68 | ], 'config'); |
| 69 | 69 | |
| 70 | - $this->mergeConfigFrom(__DIR__ . '/../config/starter-kit.php', 'StarterKit'); |
|
| 70 | + $this->mergeConfigFrom(__DIR__.'/../config/starter-kit.php', 'StarterKit'); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -78,14 +78,14 @@ discard block |
||
| 78 | 78 | public function register() |
| 79 | 79 | { |
| 80 | 80 | // Register the service the package provides. |
| 81 | - $this->app->singleton('StarterKit', function ($app) { |
|
| 81 | + $this->app->singleton('StarterKit', function($app) { |
|
| 82 | 82 | return new StarterKit; |
| 83 | 83 | }); |
| 84 | 84 | |
| 85 | 85 | $this->app->alias(StarterKit::class, 'starter-kit'); |
| 86 | 86 | |
| 87 | 87 | // Register Flash Class |
| 88 | - $this->app->singleton('flash', function () { |
|
| 88 | + $this->app->singleton('flash', function() { |
|
| 89 | 89 | return $this->app->make('Raystech\StarterKit\Supports\FlashToast'); |
| 90 | 90 | }); |
| 91 | 91 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | public function loadHelpers() { |
| 104 | - foreach (glob(__DIR__ . '/Helpers/*.php') as $filename) { |
|
| 104 | + foreach (glob(__DIR__.'/Helpers/*.php') as $filename) { |
|
| 105 | 105 | require_once($filename); |
| 106 | 106 | } |
| 107 | 107 | } |
@@ -81,10 +81,10 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | // If no message was provided, we should update |
| 83 | 83 | // the most recently added message. |
| 84 | - if (! $message) { |
|
| 84 | + if ( ! $message) { |
|
| 85 | 85 | return $this->updateLastMessage(compact('level')); |
| 86 | 86 | } |
| 87 | - if (! $message instanceof Message) { |
|
| 87 | + if ( ! $message instanceof Message) { |
|
| 88 | 88 | $message = new Message(compact('message', 'level')); |
| 89 | 89 | } |
| 90 | 90 | $this->messages->push($message); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public function overlay($message = null, $title = 'Notice') |
| 112 | 112 | { |
| 113 | - if (! $message) { |
|
| 113 | + if ( ! $message) { |
|
| 114 | 114 | return $this->updateLastMessage(['title' => $title, 'overlay' => true]); |
| 115 | 115 | } |
| 116 | 116 | return $this->message( |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | 'middleware' => 'web', |
| 6 | 6 | 'prefix' => config('starter-kit.routes.prefix'), |
| 7 | 7 | 'namespace' => 'Raystech\StarterKit\Http\Controllers' |
| 8 | -], function(){ |
|
| 8 | +], function() { |
|
| 9 | 9 | |
| 10 | 10 | Route::get('ping', function() { |
| 11 | 11 | $config = config('starter-kit'); |
@@ -13,5 +13,5 @@ discard block |
||
| 13 | 13 | return 'received'; |
| 14 | 14 | }); |
| 15 | 15 | |
| 16 | - Route::resource('posts','PostController', [ 'as' => config('starter-kit.routes.name_prefix') ]); |
|
| 16 | + Route::resource('posts', 'PostController', ['as' => config('starter-kit.routes.name_prefix')]); |
|
| 17 | 17 | }); |
| 18 | 18 | \ No newline at end of file |