Completed
Push — feature/improve-code ( 7d6b6d...e986a1 )
by Avtandil
15:08
created
examples/Commands/MarkdownCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use Longman\TelegramBot\Commands\UserCommand;
14 14
 use Longman\TelegramBot\Request;
15
-use Longman\TelegramBot\Entities\ReplyKeyboardMarkup;
16 15
 
17 16
 /**
18 17
  * User "/markdown" command
Please login to merge, or discard this patch.
src/Commands/UserCommands/SurveyCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Longman\TelegramBot\Conversation;
15 15
 use Longman\TelegramBot\Commands\UserCommand;
16 16
 use Longman\TelegramBot\Entities\ForceReply;
17
-use Longman\TelegramBot\Entities\ReplyKeyboardHide;
18 17
 use Longman\TelegramBot\Entities\ReplyKeyboardMarkup;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
src/Commands/UserCommands/WhoamiCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 namespace Longman\TelegramBot\Commands\UserCommands;
14 14
 
15 15
 use Longman\TelegramBot\Commands\UserCommand;
16
-use Longman\TelegramBot\Entities\File;
17 16
 use Longman\TelegramBot\Request;
18 17
 
19 18
 /**
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/Commands/AdminCommands/SendtochannelCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Longman\TelegramBot\Conversation;
15 15
 use Longman\TelegramBot\Commands\UserCommand;
16 16
 use Longman\TelegramBot\Entities\ForceReply;
17
-use Longman\TelegramBot\Entities\ReplyKeyboardHide;
18 17
 use Longman\TelegramBot\Entities\ReplyKeyboardMarkup;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.