@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $messages = []; |
| 47 | 47 | |
| 48 | 48 | foreach (json_decode($message, true) as $property => $attributeMessages) { |
| 49 | - if(in_array($property, static::$attributeHides)) { |
|
| 49 | + if (in_array($property, static::$attributeHides)) { |
|
| 50 | 50 | continue; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function showResetForm(string $token, string $email) |
| 30 | 30 | { |
| 31 | - if(!$email = AuthService::validatePasswordResetToken($token, $email)) { |
|
| 31 | + if (!$email = AuthService::validatePasswordResetToken($token, $email)) { |
|
| 32 | 32 | throw new \Symfony\Component\HttpKernel\Exception\NotFoundHttpException(); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -48,13 +48,13 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $this->validate($request, $this->rules(), $this->validationErrorMessages()); |
| 50 | 50 | |
| 51 | - if(AuthService::resetPassword( |
|
| 51 | + if (AuthService::resetPassword( |
|
| 52 | 52 | $request->input('token'), |
| 53 | 53 | $email = $request->input('email'), |
| 54 | 54 | $password = $request->input('password'), |
| 55 | 55 | $request->input('password_confirmation') |
| 56 | 56 | )) { |
| 57 | - if(AuthService::login($email, $password)) { |
|
| 57 | + if (AuthService::login($email, $password)) { |
|
| 58 | 58 | return $this->sendResetResponse(PasswordBroker::PASSWORD_RESET); |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function getEncryptionKey() |
| 56 | 56 | { |
| 57 | - if(!$this->encryptionKey) { |
|
| 57 | + if (!$this->encryptionKey) { |
|
| 58 | 58 | return null; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -2,6 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Illuminate\Support\Facades\Route; |
| 4 | 4 | |
| 5 | -Route::group(['namespace' => 'Slides\Connector\Auth\Http\Controllers'], function () { |
|
| 5 | +Route::group(['namespace' => 'Slides\Connector\Auth\Http\Controllers'], function() { |
|
| 6 | 6 | Route::post('connector/webhook/{key}', 'WebhookController'); |
| 7 | 7 | }); |
| 8 | 8 | \ No newline at end of file |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | { |
| 65 | 65 | $modes = $this->formatModes($modes ?? $this->modes()); |
| 66 | 66 | |
| 67 | - if($modes) { |
|
| 67 | + if ($modes) { |
|
| 68 | 68 | $this->output->block('Passed modes: ' . $modes, null, 'comment'); |
| 69 | 69 | } |
| 70 | 70 | } |
@@ -43,11 +43,11 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $syncer = new Syncer($locals = $this->syncingUsers(), $this->modes()); |
| 45 | 45 | |
| 46 | - if($locals->isEmpty()) { |
|
| 46 | + if ($locals->isEmpty()) { |
|
| 47 | 47 | $this->info('No local users found.'); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if(!$this->confirm('There are ' . $locals->count() . ' local user(s) to export. Continue?', $this->option('no-interaction'))) { |
|
| 50 | + if (!$this->confirm('There are ' . $locals->count() . ' local user(s) to export. Continue?', $this->option('no-interaction'))) { |
|
| 51 | 51 | return; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | private function syncingUsers() |
| 104 | 104 | { |
| 105 | - if(!count($ids = ConsoleHelper::stringToArray($this->option('users')))) { |
|
| 105 | + if (!count($ids = ConsoleHelper::stringToArray($this->option('users')))) { |
|
| 106 | 106 | return Syncer::retrieveLocals(); |
| 107 | 107 | } |
| 108 | 108 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | private function filePath() |
| 121 | 121 | { |
| 122 | - if(!$path = $this->option('path')) { |
|
| 122 | + if (!$path = $this->option('path')) { |
|
| 123 | 123 | $path = storage_path('app'); |
| 124 | 124 | } |
| 125 | 125 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function handle() |
| 41 | 41 | { |
| 42 | - if(!$key = $this->option('key')) { |
|
| 42 | + if (!$key = $this->option('key')) { |
|
| 43 | 43 | throw new \InvalidArgumentException('Encryption key must be passed.'); |
| 44 | 44 | } |
| 45 | 45 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | $changes = $syncer->getForeignersCount(); |
| 63 | 63 | |
| 64 | - if(!$this->confirm('Apply ' . $changes . ' changes?', true)) { |
|
| 64 | + if (!$this->confirm('Apply ' . $changes . ' changes?', true)) { |
|
| 65 | 65 | return; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -99,15 +99,15 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | protected function flushListeners() |
| 101 | 101 | { |
| 102 | - if(class_exists('\App\Http\Models\User')) { |
|
| 102 | + if (class_exists('\App\Http\Models\User')) { |
|
| 103 | 103 | \App\Http\Models\User::flushEventListeners(); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - if(class_exists('App\Http\Models\CustomerProfile')) { |
|
| 106 | + if (class_exists('App\Http\Models\CustomerProfile')) { |
|
| 107 | 107 | \App\Http\Models\CustomerProfile::flushEventListeners(); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - if(class_exists('App\Modules\Billing\Models\Account::class')) { |
|
| 110 | + if (class_exists('App\Modules\Billing\Models\Account::class')) { |
|
| 111 | 111 | \App\Modules\Billing\Models\Account::flushEventListeners(); |
| 112 | 112 | } |
| 113 | 113 | } |
@@ -66,11 +66,11 @@ |
||
| 66 | 66 | |
| 67 | 67 | $syncer = new Syncer($locals = $this->syncingUsers(), $this->modes()); |
| 68 | 68 | |
| 69 | - if($locals->isEmpty()) { |
|
| 69 | + if ($locals->isEmpty()) { |
|
| 70 | 70 | $this->info('No local users found.'); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - if(!$this->confirm('There are ' . $locals->count() . ' local user(s) to sync. Continue?', $this->option('no-interaction'))) { |
|
| 73 | + if (!$this->confirm('There are ' . $locals->count() . ' local user(s) to sync. Continue?', $this->option('no-interaction'))) { |
|
| 74 | 74 | return; |
| 75 | 75 | } |
| 76 | 76 | |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | */ |
| 101 | 101 | public static function deleteEmail(string $email, int $index): string |
| 102 | 102 | { |
| 103 | - if(strpos($email, ".{$index}.deleted" !== false)) { |
|
| 103 | + if (strpos($email, ".{$index}.deleted" !== false)) { |
|
| 104 | 104 | return $email; |
| 105 | 105 | } |
| 106 | 106 | |