@@ -12,7 +12,7 @@ |
||
12 | 12 | public function register(RegisterRequest $request) |
13 | 13 | { |
14 | 14 | $user = new User($request->all()); |
15 | - if (! $user->save()) { |
|
15 | + if (!$user->save()) { |
|
16 | 16 | throw new HttpException(500); |
17 | 17 | } |
18 | 18 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | $limit = Input::get('limit', 10); |
24 | 24 | |
25 | - $queryParams = array_diff_key($_GET, array_flip(['page'])); |
|
25 | + $queryParams = array_diff_key($_GET, array_flip([ 'page' ])); |
|
26 | 26 | $usersPaginator = User::paginate($limit) |
27 | 27 | ->appends($queryParams) |
28 | 28 | ->appends([ |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $fractal->parseIncludes(Input::get('include', '')); |
43 | 43 | |
44 | - if (! $user = User::find($id)) { |
|
44 | + if (!$user = User::find($id)) { |
|
45 | 45 | throw new NotFoundHttpException(); |
46 | 46 | } |
47 | 47 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function resetPassword(ResetPasswordRequest $request) |
13 | 13 | { |
14 | 14 | $response = $this->broker()->reset( |
15 | - $this->credentials($request), function ($user, $password) { |
|
15 | + $this->credentials($request), function($user, $password) { |
|
16 | 16 | $this->reset($user, $password); |
17 | 17 | } |
18 | 18 | ); |
@@ -16,6 +16,6 @@ |
||
16 | 16 | */ |
17 | 17 | public function setPasswordAttribute($pass) |
18 | 18 | { |
19 | - $this->attributes['password'] = Hash::make($pass); |
|
19 | + $this->attributes[ 'password' ] = Hash::make($pass); |
|
20 | 20 | } |
21 | 21 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | public function run() |
11 | 11 | { |
12 | - if (App::environment(['local', 'staging'])) { |
|
12 | + if (App::environment([ 'local', 'staging' ])) { |
|
13 | 13 | $this->call(AuthTableSeeder::class); |
14 | 14 | } |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | public function run() |
11 | 11 | { |
12 | - factory(App\Models\User::class, 20)->create()->each(function ($user) { |
|
12 | + factory(App\Models\User::class, 20)->create()->each(function($user) { |
|
13 | 13 | $user->save(); |
14 | 14 | }); |
15 | 15 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::create('users', function (Blueprint $table) { |
|
14 | + Schema::create('users', function(Blueprint $table) { |
|
15 | 15 | $table->increments('id'); |
16 | 16 | $table->string('name'); |
17 | 17 | $table->string('email')->unique(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::create('password_resets', function (Blueprint $table) { |
|
14 | + Schema::create('password_resets', function(Blueprint $table) { |
|
15 | 15 | $table->string('email')->index(); |
16 | 16 | $table->string('token'); |
17 | 17 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -$factory->define(App\Models\User::class, function (Faker $faker) { |
|
16 | +$factory->define(App\Models\User::class, function(Faker $faker) { |
|
17 | 17 | static $password; |
18 | 18 | |
19 | 19 | return [ |