@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function register() |
| 17 | 17 | { |
| 18 | - $this->app->bind(ContactServiceInterface::class, function ($app) { |
|
| 18 | + $this->app->bind(ContactServiceInterface::class, function($app) { |
|
| 19 | 19 | return new ContactService(); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function register() |
| 17 | 17 | { |
| 18 | - $this->app->bind(MessageServiceInterface::class, function ($app) { |
|
| 18 | + $this->app->bind(MessageServiceInterface::class, function($app) { |
|
| 19 | 19 | return new MessageService(); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function register() |
| 18 | 18 | { |
| 19 | - $this->app->bind(LoginServiceInterface::class, function ($app) { |
|
| 19 | + $this->app->bind(LoginServiceInterface::class, function($app) { |
|
| 20 | 20 | return new LoginService( |
| 21 | 21 | $app->make(ClientRepository::class) |
| 22 | 22 | ); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function boot() |
| 16 | 16 | { |
| 17 | - Broadcast::routes(['middleware' => ['auth:api']]); |
|
| 17 | + Broadcast::routes([ 'middleware' => [ 'auth:api' ] ]); |
|
| 18 | 18 | |
| 19 | 19 | require base_path('routes/channels.php'); |
| 20 | 20 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | protected function configurePermissions() |
| 39 | 39 | { |
| 40 | - Jetstream::defaultApiTokenPermissions(['read']); |
|
| 40 | + Jetstream::defaultApiTokenPermissions([ 'read' ]); |
|
| 41 | 41 | |
| 42 | 42 | Jetstream::permissions([ |
| 43 | 43 | 'create', |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | $this->hideSensitiveRequestDetails(); |
| 22 | 22 | |
| 23 | - Telescope::filter(function (IncomingEntry $entry) { |
|
| 23 | + Telescope::filter(function(IncomingEntry $entry) { |
|
| 24 | 24 | if ($this->app->environment('local')) { |
| 25 | 25 | return true; |
| 26 | 26 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | return; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - Telescope::hideRequestParameters(['_token']); |
|
| 47 | + Telescope::hideRequestParameters([ '_token' ]); |
|
| 48 | 48 | |
| 49 | 49 | Telescope::hideRequestHeaders([ |
| 50 | 50 | 'cookie', |
@@ -62,10 +62,10 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | protected function gate() |
| 64 | 64 | { |
| 65 | - Gate::define('viewTelescope', function ($user) { |
|
| 65 | + Gate::define('viewTelescope', function($user) { |
|
| 66 | 66 | $mails = explode(',', config('telescope.mail_addresses')); |
| 67 | 67 | |
| 68 | - return in_array($user->email, $mails ?? []); |
|
| 68 | + return in_array($user->email, $mails ?? [ ]); |
|
| 69 | 69 | }); |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | protected function passwordRules() |
| 15 | 15 | { |
| 16 | - return ['required', 'string', new Password, 'confirmed']; |
|
| 16 | + return [ 'required', 'string', new Password, 'confirmed' ]; |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -20,16 +20,16 @@ |
||
| 20 | 20 | public function update($user, array $input) |
| 21 | 21 | { |
| 22 | 22 | Validator::make($input, [ |
| 23 | - 'current_password' => ['required', 'string'], |
|
| 23 | + 'current_password' => [ 'required', 'string' ], |
|
| 24 | 24 | 'password' => $this->passwordRules(), |
| 25 | - ])->after(function ($validator) use ($user, $input) { |
|
| 26 | - if (! Hash::check($input['current_password'], $user->password)) { |
|
| 25 | + ])->after(function($validator) use ($user, $input) { |
|
| 26 | + if (!Hash::check($input[ 'current_password' ], $user->password)) { |
|
| 27 | 27 | $validator->errors()->add('current_password', __('The provided password does not match your current password.')); |
| 28 | 28 | } |
| 29 | 29 | })->validateWithBag('updatePassword'); |
| 30 | 30 | |
| 31 | 31 | $user->forceFill([ |
| 32 | - 'password' => Hash::make($input['password']), |
|
| 32 | + 'password' => Hash::make($input[ 'password' ]), |
|
| 33 | 33 | ])->save(); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -20,15 +20,15 @@ |
||
| 20 | 20 | public function create(array $input) |
| 21 | 21 | { |
| 22 | 22 | Validator::make($input, [ |
| 23 | - 'name' => ['required', 'string', 'max:255'], |
|
| 24 | - 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], |
|
| 23 | + 'name' => [ 'required', 'string', 'max:255' ], |
|
| 24 | + 'email' => [ 'required', 'string', 'email', 'max:255', 'unique:users' ], |
|
| 25 | 25 | 'password' => $this->passwordRules(), |
| 26 | 26 | ])->validate(); |
| 27 | 27 | |
| 28 | 28 | return User::create([ |
| 29 | - 'name' => $input['name'], |
|
| 30 | - 'email' => $input['email'], |
|
| 31 | - 'password' => Hash::make($input['password']), |
|
| 29 | + 'name' => $input[ 'name' ], |
|
| 30 | + 'email' => $input[ 'email' ], |
|
| 31 | + 'password' => Hash::make($input[ 'password' ]), |
|
| 32 | 32 | ]); |
| 33 | 33 | } |
| 34 | 34 | } |