@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | private function checkAndGetResponseData(Collection $collection) |
| 24 | 24 | { |
| 25 | - $requiredAttributes = ['id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash']; |
|
| 25 | + $requiredAttributes = [ 'id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash' ]; |
|
| 26 | 26 | |
| 27 | 27 | $collection = $collection->only($requiredAttributes); |
| 28 | 28 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | $data = $collection->except('hash'); |
| 41 | 41 | |
| 42 | - $data_check_string = $data->map(function ($item, $key) { |
|
| 42 | + $data_check_string = $data->map(function($item, $key) { |
|
| 43 | 43 | return $key.'='.$item; |
| 44 | 44 | }) |
| 45 | 45 | ->values() |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | $this->mergeConfigFrom(__DIR__.'/../config/telegramloginwidget.php', 'telegramloginwidget'); |
| 30 | 30 | |
| 31 | - $this->app->singleton(TelegramLoginWidget::class, function () { |
|
| 31 | + $this->app->singleton(TelegramLoginWidget::class, function() { |
|
| 32 | 32 | return new TelegramLoginWidget; |
| 33 | 33 | }); |
| 34 | 34 | } |