@@ -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 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | private function checkAndGetResponseData(Collection $collection) |
43 | 43 | { |
44 | - $requiredAttributes = ['id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash']; |
|
44 | + $requiredAttributes = [ 'id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash' ]; |
|
45 | 45 | |
46 | 46 | return $collection->only($requiredAttributes); |
47 | 47 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $data = $collection->except('hash'); |
54 | 54 | |
55 | - $data_check_string = $data->map(function ($item, $key) { |
|
55 | + $data_check_string = $data->map(function($item, $key) { |
|
56 | 56 | return $key.'='.$item; |
57 | 57 | }) |
58 | 58 | ->values() |