Completed
Push — master ( 77b714...f18a6c )
by Patrick
04:07
created
src/TelegramLoginWidget.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.