@@ -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 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | private function checkAndGetResponseData(Collection $collection): Collection |
48 | 48 | { |
49 | - $requiredAttributes = ['id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash']; |
|
49 | + $requiredAttributes = [ 'id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash' ]; |
|
50 | 50 | |
51 | 51 | return $collection->only($requiredAttributes); |
52 | 52 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | $data = $collection->except('hash'); |
66 | 66 | |
67 | - $data_check_string = $data->map(function ($item, $key) { |
|
67 | + $data_check_string = $data->map(function($item, $key) { |
|
68 | 68 | return $key.'='.$item; |
69 | 69 | }) |
70 | 70 | ->values() |