@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->mergeConfigFrom(__DIR__.'/../config/telegramloginwidget.php', 'telegramloginwidget'); |
| 35 | 35 | |
| 36 | 36 | // Register the service the package provides. |
| 37 | - $this->app->singleton('telegramloginwidget', function ($app) { |
|
| 37 | + $this->app->singleton('telegramloginwidget', function($app) { |
|
| 38 | 38 | return new TelegramLoginWidget; |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -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() |