@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('users', function (Blueprint $table) { |
|
16 | + Schema::create('users', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('email')->unique(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
17 | 17 | $table->string('email')->index(); |
18 | 18 | $table->string('token'); |
19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -$factory->define(App\User::class, function (Faker $faker) { |
|
16 | +$factory->define(App\User::class, function(Faker $faker) { |
|
17 | 17 | return [ |
18 | 18 | 'name' => $faker->name, |
19 | 19 | 'email' => $faker->unique()->safeEmail, |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | public function scanForCommands(): array |
39 | 39 | { |
40 | - $commands = []; |
|
40 | + $commands = [ ]; |
|
41 | 41 | |
42 | 42 | foreach (\Module::all() as $module) { |
43 | 43 | foreach ($this->moduleCommandDirectoryNames as $directory) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | try { |
55 | 55 | if (new $class() instanceof Command) { |
56 | - $commands[] = $class; |
|
56 | + $commands[ ] = $class; |
|
57 | 57 | } |
58 | 58 | } catch (\Exception $e) { |
59 | 59 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | private function isPhpFile(string $fileName): bool |
70 | 70 | { |
71 | - return strlen($fileName) > 5 && '.php' === ($fileName[-4].$fileName[-3].$fileName[-2].$fileName[-1]); |
|
71 | + return strlen($fileName) > 5 && '.php' === ($fileName[-4 ].$fileName[-3 ].$fileName[-2 ].$fileName[-1 ]); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | public function getCommandsFromCache(): array |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | protected function mapWebRoutes() |
51 | 51 | { |
52 | 52 | Route::middleware('web') |
53 | - ->namespace($this->namespace) |
|
54 | - ->group(base_path('routes/web.php')); |
|
53 | + ->namespace($this->namespace) |
|
54 | + ->group(base_path('routes/web.php')); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | protected function mapApiRoutes() |
65 | 65 | { |
66 | 66 | Route::prefix('api') |
67 | - ->middleware('api') |
|
68 | - ->namespace($this->namespace) |
|
69 | - ->group(base_path('routes/api.php')); |
|
67 | + ->middleware('api') |
|
68 | + ->namespace($this->namespace) |
|
69 | + ->group(base_path('routes/api.php')); |
|
70 | 70 | } |
71 | 71 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | final public function up() |
39 | 39 | { |
40 | 40 | if (!Schema::connection($this->connection)->hasTable($this->collection)) { |
41 | - Schema::connection($this->connection)->create($this->collection, function (Blueprint $collection) { |
|
41 | + Schema::connection($this->connection)->create($this->collection, function(Blueprint $collection) { |
|
42 | 42 | $this->migrate($collection); |
43 | 43 | }); |
44 | 44 | } |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | $sourcePath => $viewPath, |
69 | 69 | ], 'views'); |
70 | 70 | |
71 | - $this->loadViewsFrom(array_merge(array_map(function ($path) { |
|
71 | + $this->loadViewsFrom(array_merge(array_map(function($path) { |
|
72 | 72 | return $path.'/modules/user'; |
73 | - }, \Config::get('view.paths')), [$sourcePath]), 'user'); |
|
73 | + }, \Config::get('view.paths')), [ $sourcePath ]), 'user'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -108,6 +108,6 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function provides() |
110 | 110 | { |
111 | - return []; |
|
111 | + return [ ]; |
|
112 | 112 | } |
113 | 113 | } |
@@ -13,6 +13,6 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::middleware('auth:api')->get('/user', function (Request $request) { |
|
16 | +Route::middleware('auth:api')->get('/user', function(Request $request) { |
|
17 | 17 | return $request->user(); |
18 | 18 | }); |
@@ -11,6 +11,6 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::prefix('user')->group(function () { |
|
14 | +Route::prefix('user')->group(function() { |
|
15 | 15 | Route::get('/', 'UserController@index'); |
16 | 16 | }); |