@@ -13,6 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | Route::get('/example', 'ExampleController@index'); |
| 15 | 15 | |
| 16 | -Route::group(['prefix' => 'v1', 'namespace' => 'Api\V1'], function () { |
|
| 16 | +Route::group([ 'prefix' => 'v1', 'namespace' => 'Api\V1' ], function() { |
|
| 17 | 17 | // |
| 18 | 18 | }); |
@@ -9,5 +9,5 @@ |
||
| 9 | 9 | { |
| 10 | 10 | use CamelMutatorTrait; |
| 11 | 11 | |
| 12 | - protected $fillable = []; |
|
| 12 | + protected $fillable = [ ]; |
|
| 13 | 13 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('examples', function (Blueprint $table) { |
|
| 16 | + Schema::create('examples', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | |
| 19 | 19 | $table->timestamps(); |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | protected function mapWebRoutes() |
| 51 | 51 | { |
| 52 | 52 | Route::middleware('web') |
| 53 | - ->namespace($this->namespace) |
|
| 54 | - ->group(__DIR__.'/../Routes/web.php'); |
|
| 53 | + ->namespace($this->namespace) |
|
| 54 | + ->group(__DIR__.'/../Routes/web.php'); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | protected function mapApiRoutes() |
| 65 | 65 | { |
| 66 | 66 | Route::prefix('api') |
| 67 | - ->middleware('api') |
|
| 68 | - ->namespace($this->namespace) |
|
| 69 | - ->group(__DIR__.'/../Routes/api.php'); |
|
| 67 | + ->middleware('api') |
|
| 68 | + ->namespace($this->namespace) |
|
| 69 | + ->group(__DIR__.'/../Routes/api.php'); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | $sourcePath => $viewPath, |
| 72 | 72 | ], 'views'); |
| 73 | 73 | |
| 74 | - $this->loadViewsFrom(array_merge(array_map(function ($path) { |
|
| 74 | + $this->loadViewsFrom(array_merge(array_map(function($path) { |
|
| 75 | 75 | return $path.'/modules/example'; |
| 76 | - }, \Config::get('view.paths')), [$sourcePath]), 'example'); |
|
| 76 | + }, \Config::get('view.paths')), [ $sourcePath ]), 'example'); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -111,6 +111,6 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public function provides() |
| 113 | 113 | { |
| 114 | - return []; |
|
| 114 | + return [ ]; |
|
| 115 | 115 | } |
| 116 | 116 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $name = Module::find('example')->name; |
| 19 | 19 | $requirements = collect(Module::findRequirements('example')); |
| 20 | - $requirements = $requirements->map(function ($item) { |
|
| 20 | + $requirements = $requirements->map(function($item) { |
|
| 21 | 21 | return $item->name; |
| 22 | 22 | }); |
| 23 | 23 | $routes = get_routes('example'); |