Completed
Pull Request — develop (#365)
by
unknown
02:44
created
src/Commands/UserCommands/WeatherCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
             }
93 93
 
94 94
             //http://openweathermap.org/weather-conditions
95
-            $conditions     = [
95
+            $conditions = [
96 96
                 'clear'        => ' ☀️',
97 97
                 'clouds'       => ' ☁️',
98 98
                 'rain'         => ' ☔',
Please login to merge, or discard this patch.
src/Entities/ServerResponse.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,11 +100,11 @@
 block discarded – undo
100 100
 
101 101
         $result_object_types = [
102 102
             'total_count' => 'UserProfilePhotos', //Response from getUserProfilePhotos
103
-            'file_id'     => 'File',              //Response from getFile
104
-            'title'       => 'Chat',              //Response from getChat
105
-            'username'    => 'User',              //Response from getMe
106
-            'user'        => 'ChatMember',        //Response from getChatMember
107
-            'url'         => 'WebhookInfo',       //Response from getWebhookInfo
103
+            'file_id'     => 'File', //Response from getFile
104
+            'title'       => 'Chat', //Response from getChat
105
+            'username'    => 'User', //Response from getMe
106
+            'user'        => 'ChatMember', //Response from getChatMember
107
+            'url'         => 'WebhookInfo', //Response from getWebhookInfo
108 108
         ];
109 109
         foreach ($result_object_types as $type => $object_class) {
110 110
             if (isset($result[$type])) {
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 'first_name' => 'botname',
158 158
                 'username'   => 'namebot',
159 159
             ];
160
-            $data['chat']       = ['id' => $data['chat_id']];
160
+            $data['chat'] = ['id' => $data['chat_id']];
161 161
 
162 162
             $fake_response['result'] = $data;
163 163
         }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 '/bot' . self::$telegram->getApiKey() . '/' . $action,
220 220
                 $request_params
221 221
             );
222
-            $result   = (string) $response->getBody();
222
+            $result = (string) $response->getBody();
223 223
 
224 224
             //Logging getUpdates Update
225 225
             if ($action === 'getUpdates') {
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
      */
810 810
     public static function setWebhook($url = '', array $data = [])
811 811
     {
812
-        $data        = array_intersect_key($data, array_flip([
812
+        $data = array_intersect_key($data, array_flip([
813 813
             'certificate',
814 814
             'max_connections',
815 815
             'allowed_updates',
Please login to merge, or discard this patch.