Completed
Branch scrutinizer_fixes (e85bf7)
by Armando
02:47
created
src/Telegram.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
         if ($response->isOk()) {
329 329
             //Process all updates
330 330
             /** @var Update $result */
331
-            foreach ((array)$response->getResult() as $result) {
331
+            foreach ((array) $response->getResult() as $result) {
332 332
                 $this->processUpdate($result);
333 333
             }
334 334
         }
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
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 'first_name' => 'botname',
156 156
                 'username'   => 'namebot',
157 157
             ];
158
-            $data['chat']       = ['id' => $data['chat_id']];
158
+            $data['chat'] = ['id' => $data['chat_id']];
159 159
 
160 160
             $fake_response['result'] = $data;
161 161
         }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
         //Fix so that the keyboard markup is a string, not an object
180 180
         if (isset($data['reply_markup']) && !is_string($data['reply_markup'])) {
181
-            $data['reply_markup'] = (string)$data['reply_markup'];
181
+            $data['reply_markup'] = (string) $data['reply_markup'];
182 182
         }
183 183
 
184 184
         $request_params = ['debug' => $debug_handle];
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
         $result = '';
205 205
         try {
206
-            $result = (string)self::$client->post(
206
+            $result = (string) self::$client->post(
207 207
                 '/bot' . self::$telegram->getApiKey() . '/' . $action,
208 208
                 $request_params
209 209
             )->getBody();
Please login to merge, or discard this patch.
src/Entities/ReplyKeyboardMarkup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         //Set the object members from the passed data params
64 64
         foreach (['resize_keyboard', 'one_time_keyboard', 'selective'] as $param) {
65
-            $this->$param = isset($data[$param]) ? (bool)$data[$param] : false;
65
+            $this->$param = isset($data[$param]) ? (bool) $data[$param] : false;
66 66
         }
67 67
     }
68 68
 }
Please login to merge, or discard this patch.