Completed
Branch feature/improve-code (a8c279)
by Avtandil
06:09
created
src/Entities/Sticker.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,26 +62,26 @@
 block discarded – undo
62 62
 
63 63
     public function getWidth()
64 64
     {
65
-         return $this->width;
65
+            return $this->width;
66 66
     }
67 67
 
68 68
     public function getHeight()
69 69
     {
70
-         return $this->height;
70
+            return $this->height;
71 71
     }
72 72
 
73 73
     public function getThumb()
74 74
     {
75
-         return $this->thumb;
75
+            return $this->thumb;
76 76
     }
77 77
 
78 78
     public function getEmoji()
79 79
     {
80
-         return $this->emoji;
80
+            return $this->emoji;
81 81
     }
82 82
 
83 83
     public function getFileSize()
84 84
     {
85
-         return $this->file_size;
85
+            return $this->file_size;
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
src/Entities/Video.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,27 +65,27 @@
 block discarded – undo
65 65
 
66 66
     public function getWidth()
67 67
     {
68
-         return $this->width;
68
+            return $this->width;
69 69
     }
70 70
 
71 71
     public function getHeight()
72 72
     {
73
-         return $this->height;
73
+            return $this->height;
74 74
     }
75 75
     public function getDuration()
76 76
     {
77
-         return $this->duration;
77
+            return $this->duration;
78 78
     }
79 79
     public function getThumb()
80 80
     {
81
-         return $this->thumb;
81
+            return $this->thumb;
82 82
     }
83 83
     public function getMimeType()
84 84
     {
85
-         return $this->mime_type;
85
+            return $this->mime_type;
86 86
     }
87 87
     public function getFileSize()
88 88
     {
89
-         return $this->file_size;
89
+            return $this->file_size;
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
src/Entities/Voice.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,16 +47,16 @@
 block discarded – undo
47 47
 
48 48
     public function getDuration()
49 49
     {
50
-         return $this->duration;
50
+            return $this->duration;
51 51
     }
52 52
 
53 53
     public function getMimeType()
54 54
     {
55
-         return $this->mime_type;
55
+            return $this->mime_type;
56 56
     }
57 57
 
58 58
     public function getFileSize()
59 59
     {
60
-         return $this->file_size;
60
+            return $this->file_size;
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
src/Entities/PhotoSize.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,16 +53,16 @@
 block discarded – undo
53 53
 
54 54
     public function getWidth()
55 55
     {
56
-         return $this->width;
56
+            return $this->width;
57 57
     }
58 58
 
59 59
     public function getHeight()
60 60
     {
61
-         return $this->height;
61
+            return $this->height;
62 62
     }
63 63
 
64 64
     public function getFileSize()
65 65
     {
66
-         return $this->file_size;
66
+            return $this->file_size;
67 67
     }
68 68
 }
Please login to merge, or discard this patch.
examples/Commands/ImageCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
     //return random picture from the telegram->getUploadPath();
48 48
     
49 49
     private function ShowRandomImage($dir) {
50
-		$image_list = scandir($dir);
51
-		return $dir . "/" . $image_list[mt_rand(2, count($image_list) - 1)];
52
-	}
50
+        $image_list = scandir($dir);
51
+        return $dir . "/" . $image_list[mt_rand(2, count($image_list) - 1)];
52
+    }
53 53
 
54 54
 }
Please login to merge, or discard this patch.
examples/getUpdatesCLI.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
 
22 22
 // Enter your MySQL database credentials
23 23
 $mysql_credentials = [
24
-   'host'     => 'localhost',
25
-   'user'     => 'dbuser',
26
-   'password' => 'dbpass',
27
-   'database' => 'dbname',
24
+    'host'     => 'localhost',
25
+    'user'     => 'dbuser',
26
+    'password' => 'dbpass',
27
+    'database' => 'dbname',
28 28
 ];
29 29
 
30 30
 try {
Please login to merge, or discard this patch.
src/Entities/Audio.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,16 +47,16 @@
 block discarded – undo
47 47
 
48 48
     public function getDuration()
49 49
     {
50
-         return $this->duration;
50
+            return $this->duration;
51 51
     }
52 52
 
53 53
     public function getMimeType()
54 54
     {
55
-         return $this->mime_type;
55
+            return $this->mime_type;
56 56
     }
57 57
 
58 58
     public function getFileSize()
59 59
     {
60
-         return $this->file_size;
60
+            return $this->file_size;
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
src/Telegram.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -288,9 +288,9 @@  discard block
 block discarded – undo
288 288
     {
289 289
         if (!DB::isDbConnected()) {
290 290
             return new Entities\ServerResponse([
291
-                                                   'ok'          => false,
292
-                                                   'description' => 'getUpdates needs MySQL connection!',
293
-                                               ], $this->bot_name);
291
+                                                    'ok'          => false,
292
+                                                    'description' => 'getUpdates needs MySQL connection!',
293
+                                                ], $this->bot_name);
294 294
         }
295 295
 
296 296
         //DB Query
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
         return mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding) . mb_strtolower(mb_substr($str, 1,
763 763
                                                                                                     mb_strlen($str),
764 764
                                                                                                     $encoding),
765
-                                                                                          $encoding);
765
+                                                                                            $encoding);
766 766
     }
767 767
 
768 768
     /**
Please login to merge, or discard this patch.
src/DB.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             $sth_insert_telegram_update->bindParam(':message_id', $message_id, PDO::PARAM_INT);
298 298
             $sth_insert_telegram_update->bindParam(':inline_query_id', $inline_query_id, PDO::PARAM_INT);
299 299
             $sth_insert_telegram_update->bindParam(':chosen_inline_result_id', $chosen_inline_result_id,
300
-                                                   PDO::PARAM_INT);
300
+                                                    PDO::PARAM_INT);
301 301
             $sth_insert_telegram_update->bindParam(':callback_query_id', $callback_query_id, PDO::PARAM_INT);
302 302
             $sth_insert_telegram_update->bindParam(':edited_message_id', $edited_message_id, PDO::PARAM_INT);
303 303
 
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
             if (self::insertChosenInlineResultRequest($chosen_inline_result)) {
460 460
                 $chosen_inline_result_local_id = self::$pdo->lastInsertId();
461 461
                 return self::insertTelegramUpdate($update_id, null, null, null, $chosen_inline_result_local_id, null,
462
-                                                  null);
462
+                                                    null);
463 463
             }
464 464
         } elseif ($update->getUpdateType() == 'callback_query') {
465 465
             $callback_query = $update->getCallbackQuery();
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
                 $chat_id                 = $edited_message->getChat()->getId();
476 476
                 $edited_message_local_id = self::$pdo->lastInsertId();
477 477
                 return self::insertTelegramUpdate($update_id, $chat_id, null, null, null, null,
478
-                                                  $edited_message_local_id);
478
+                                                    $edited_message_local_id);
479 479
             }
480 480
         }
481 481
 
Please login to merge, or discard this patch.