Passed
Push — develop ( d78e26...fb0f34 )
by Armando
02:52
created
src/DB.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         }
291 291
 
292 292
         // Convert each Entity item into an object based on its JSON reflection
293
-        $json_entities = array_map(function ($entity) {
293
+        $json_entities = array_map(function($entity) {
294 294
             return json_decode($entity, true);
295 295
         }, $entities);
296 296
 
@@ -1044,7 +1044,7 @@  discard block
 block discarded – undo
1044 1044
             if (null !== $select['text']) {
1045 1045
                 $text_like = '%' . strtolower($select['text']) . '%';
1046 1046
                 if ($select['users']) {
1047
-                    $where[]          = '(
1047
+                    $where[] = '(
1048 1048
                         LOWER(' . TB_CHAT . '.`title`) LIKE :text1
1049 1049
                         OR LOWER(' . TB_USER . '.`first_name`) LIKE :text2
1050 1050
                         OR LOWER(' . TB_USER . '.`last_name`) LIKE :text3
Please login to merge, or discard this patch.
src/Telegram.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             }
354 354
 
355 355
             if ($this->last_update_id !== null) {
356
-                $offset = $this->last_update_id + 1;    //As explained in the telegram bot API documentation
356
+                $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation
357 357
             }
358 358
 
359 359
             $response = Request::getUpdates(
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
             throw new TelegramException('Hook url is empty!');
806 806
         }
807 807
 
808
-        $data        = array_intersect_key($data, array_flip([
808
+        $data = array_intersect_key($data, array_flip([
809 809
             'certificate',
810 810
             'max_connections',
811 811
             'allowed_updates',
@@ -919,8 +919,8 @@  discard block
 block discarded – undo
919 919
         }
920 920
 
921 921
 
922
-        $this->enableAdmin($bot_id);    // Give bot access to admin commands
923
-        $this->getCommandsList();       // Load full commands list
922
+        $this->enableAdmin($bot_id); // Give bot access to admin commands
923
+        $this->getCommandsList(); // Load full commands list
924 924
 
925 925
         foreach ($commands as $command) {
926 926
             $this->update = new Update(
Please login to merge, or discard this patch.