Completed
Push — scrutinizer_fixes ( 9f0c63...576d69 )
by Armando
03:04
created
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
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         //Fix so that the keyboard markup is a string, not an object
205 205
         if (isset($data['reply_markup'])) {
206
-            $data['reply_markup'] = (string)$data['reply_markup'];
206
+            $data['reply_markup'] = (string) $data['reply_markup'];
207 207
         }
208 208
 
209 209
         $request_params = self::setUpRequestParams($data);
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 '/bot' . self::$telegram->getApiKey() . '/' . $action,
217 217
                 $request_params
218 218
             );
219
-            $result   = (string)$response->getBody();
219
+            $result = (string) $response->getBody();
220 220
 
221 221
             //Logging getUpdates Update
222 222
             if ($action === 'getUpdates') {
Please login to merge, or discard this patch.
src/DB.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
         }
263 263
 
264 264
         //Convert each Entity item into an object based on its JSON reflection
265
-        $json_entities = array_map(function ($entity) {
265
+        $json_entities = array_map(function($entity) {
266 266
             return json_decode($entity, true);
267 267
         }, $entities);
268 268
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
      * @todo Find a better way, as json_* functions are very heavy
252 252
      *
253 253
      * @param array|null $entities
254
-     * @param mixed      $default
254
+     * @param string|null      $default
255 255
      *
256 256
      * @return mixed
257 257
      */
Please login to merge, or discard this patch.