@@ -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'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('users_activations', function (Blueprint $table) { |
|
15 | + Schema::create('users_activations', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('user_id'); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | /** |
32 | 32 | * Get the notification's delivery channels. |
33 | 33 | * |
34 | - * @return array |
|
34 | + * @return string[] |
|
35 | 35 | */ |
36 | 36 | public function via() |
37 | 37 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Bus\Queueable; |
6 | 6 | use Illuminate\Notifications\Notification; |
7 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
8 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
9 | 8 | |
10 | 9 | class ResetPasswordNotification extends Notification |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | |
14 | 14 | /** @var \Illuminate\Database\Eloquent\Factory $factory */ |
15 | -$factory->define(App\Models\User::class, function (Faker\Generator $faker) { |
|
15 | +$factory->define(App\Models\User::class, function(Faker\Generator $faker) { |
|
16 | 16 | static $password; |
17 | 17 | |
18 | 18 | return [ |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $validator = app('validator')->make($request->all(), [ |
106 | 106 | 'token' => 'required|string', |
107 | 107 | 'email' => 'required|email|max:255', |
108 | - 'password' => 'required|confirmed|min:' . app('config')->get('auth.passwords.users.min_length') |
|
108 | + 'password' => 'required|confirmed|min:'.app('config')->get('auth.passwords.users.min_length') |
|
109 | 109 | ]); |
110 | 110 | if ($validator->fails()) { |
111 | 111 | throw new ValidationException($validator); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $passwordBroker = app('auth.password.broker'); |
117 | 117 | $response = $passwordBroker->reset( |
118 | - $credentials, function (User $user, $password) { |
|
118 | + $credentials, function(User $user, $password) { |
|
119 | 119 | $user->password = app('hash')->make($password); |
120 | 120 | $user->save(); |
121 | 121 | app('auth.driver')->login($user); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $validator = app('validator')->make($request->all(), [ |
44 | 44 | 'name' => 'sometimes|required|max:255', |
45 | 45 | 'email' => 'required|email|max:255|unique:users', |
46 | - 'password' => 'required|confirmed|min:' . config('auth.passwords.users.min_length'), |
|
46 | + 'password' => 'required|confirmed|min:'.config('auth.passwords.users.min_length'), |
|
47 | 47 | ]); |
48 | 48 | if ($validator->fails()) { |
49 | 49 | throw new ValidationException($validator); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | public function __construct() |
26 | 26 | { |
27 | 27 | if (!empty($locale = app('translator')->getLocale()) && $locale != app('config')->get('app.locale')) { |
28 | - $this->redirectTo = '/' . $locale . $this->redirectTo; |
|
28 | + $this->redirectTo = '/'.$locale.$this->redirectTo; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | $this->middleware('guest', ['except' => 'logout']); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | } |
17 | 17 | $token = $activation->code; |
18 | 18 | $view = config('auth.activations.view'); |
19 | - app('mailer')->send($view, compact('user', 'token'), function (Message $m) use ($user, $token) { |
|
19 | + app('mailer')->send($view, compact('user', 'token'), function(Message $m) use ($user, $token) { |
|
20 | 20 | $m->to($user->email)->subject($this->getActivationEmailSubject()); |
21 | 21 | }); |
22 | 22 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('files', function (Blueprint $table) { |
|
15 | + Schema::create('files', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDb'; |
17 | 17 | $table->string('hash', 64)->primary(); |
18 | 18 | $table->string('disk', 64)->default('localhost'); |