@@ -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() |