@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function map(Router $router) |
| 39 | 39 | { |
| 40 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
| 40 | + $router->group([ 'namespace' => $this->namespace ], function($router) { |
|
| 41 | 41 | require app_path('Http/routes.php'); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function __construct() |
| 39 | 39 | { |
| 40 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); |
|
| 40 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | protected function create(array $data) |
| 65 | 65 | { |
| 66 | 66 | return User::create([ |
| 67 | - 'name' => $data['name'], |
|
| 68 | - 'email' => $data['email'], |
|
| 69 | - 'password' => bcrypt($data['password']), |
|
| 67 | + 'name' => $data[ 'name' ], |
|
| 68 | + 'email' => $data[ 'email' ], |
|
| 69 | + 'password' => bcrypt($data[ 'password' ]), |
|
| 70 | 70 | ]); |
| 71 | 71 | } |
| 72 | 72 | } |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 15 | - return ['ok']; |
|
| 14 | +Route::get('/', function() { |
|
| 15 | + return [ 'ok' ]; |
|
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | 18 | /* |
@@ -26,6 +26,6 @@ discard block |
||
| 26 | 26 | | |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | -Route::group(['middleware' => ['web']], function () { |
|
| 29 | +Route::group([ 'middleware' => [ 'web' ] ], function() { |
|
| 30 | 30 | // |
| 31 | 31 | }); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users', function (Blueprint $table) { |
|
| 15 | + Schema::create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('email')->unique(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 15 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 16 | 16 | $table->string('email')->index(); |
| 17 | 17 | $table->string('token')->index(); |
| 18 | 18 | $table->timestamp('created_at'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -$factory->define(App\User::class, function (Faker\Generator $faker) { |
|
| 14 | +$factory->define(App\User::class, function(Faker\Generator $faker) { |
|
| 15 | 15 | return [ |
| 16 | 16 | 'name' => $faker->name, |
| 17 | 17 | 'email' => $faker->safeEmail, |
@@ -105,6 +105,6 @@ |
||
| 105 | 105 | | |
| 106 | 106 | */ |
| 107 | 107 | |
| 108 | - 'attributes' => [], |
|
| 108 | + 'attributes' => [ ], |
|
| 109 | 109 | |
| 110 | 110 | ]; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | | |
| 55 | 55 | */ |
| 56 | 56 | |
| 57 | - 'from' => ['address' => null, 'name' => null], |
|
| 57 | + 'from' => [ 'address' => null, 'name' => null ], |
|
| 58 | 58 | |
| 59 | 59 | /* |
| 60 | 60 | |-------------------------------------------------------------------------- |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | | |
| 97 | 97 | */ |
| 98 | 98 | |
| 99 | - 'lottery' => [2, 100], |
|
| 99 | + 'lottery' => [ 2, 100 ], |
|
| 100 | 100 | |
| 101 | 101 | /* |
| 102 | 102 | |-------------------------------------------------------------------------- |