@@ -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 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function validate($response) |
19 | 19 | { |
20 | - $collection = []; |
|
20 | + $collection = [ ]; |
|
21 | 21 | try { |
22 | 22 | $collection = $this->validateWithError($response); |
23 | 23 | } catch (TelegramException $exception) { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | private function checkAndGetResponseData(Collection $collection) |
47 | 47 | { |
48 | - $requiredAttributes = ['id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash']; |
|
48 | + $requiredAttributes = [ 'id', 'first_name', 'last_name', 'username', 'photo_url', 'auth_date', 'hash' ]; |
|
49 | 49 | |
50 | 50 | $collection = $collection->only($requiredAttributes); |
51 | 51 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $data = $collection->except('hash'); |
64 | 64 | |
65 | - $data_check_string = $data->map(function ($item, $key) { |
|
65 | + $data_check_string = $data->map(function($item, $key) { |
|
66 | 66 | return $key.'='.$item; |
67 | 67 | }) |
68 | 68 | ->values() |