@@ -47,10 +47,10 @@ class DebugCommand extends AdminCommand
4747 */
4848 public function execute ()
4949 {
50- $ pdo = DB ::getPdo ();
50+ $ pdo = DB ::getPdo ();
5151 $ message = $ this ->getMessage ();
52- $ chat = $ message ->getChat ();
53- $ text = strtolower ($ message ->getText (true ));
52+ $ chat = $ message ->getChat ();
53+ $ text = strtolower ($ message ->getText (true ));
5454
5555 $ data = ['chat_id ' => $ chat ->getId ()];
5656
@@ -80,15 +80,15 @@ public function execute()
8080 $ debug_info [] = sprintf ('*Maximum PHP script execution time:* `%d seconds` ' , ini_get ('max_execution_time ' ));
8181
8282 $ mysql_version = $ pdo ? $ pdo ->query ('SELECT VERSION() AS version ' )->fetchColumn () : null ;
83- $ debug_info [] = sprintf ('*MySQL version:* `%s` ' , $ mysql_version ?: 'disabled ' );
83+ $ debug_info [] = sprintf ('*MySQL version:* `%s` ' , $ mysql_version ?: 'disabled ' );
8484
8585 $ debug_info [] = sprintf ('*Operating System:* `%s` ' , php_uname ());
8686
8787 if (isset ($ _SERVER ['SERVER_SOFTWARE ' ])) {
8888 $ debug_info [] = sprintf ('*Web Server:* `%s` ' , $ _SERVER ['SERVER_SOFTWARE ' ]);
8989 }
9090 if (function_exists ('curl_init ' )) {
91- $ curlversion = curl_version ();
91+ $ curlversion = curl_version ();
9292 $ debug_info [] = sprintf ('*curl version:* `%1$s; %2$s` ' , $ curlversion ['version ' ], $ curlversion ['ssl_version ' ]);
9393 }
9494
@@ -105,8 +105,8 @@ public function execute()
105105 }
106106
107107 $ webhook_info_result_str = json_encode ($ webhook_info_result , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES );
108- $ debug_info [] = $ webhook_info_title ;
109- $ debug_info [] = sprintf (
108+ $ debug_info [] = $ webhook_info_title ;
109+ $ debug_info [] = sprintf (
110110 '``` ' . PHP_EOL . '%s``` ' ,
111111 $ webhook_info_result_str
112112 );
@@ -116,7 +116,7 @@ public function execute()
116116 }
117117
118118 $ data ['parse_mode ' ] = 'Markdown ' ;
119- $ data ['text ' ] = implode (PHP_EOL , $ debug_info );
119+ $ data ['text ' ] = implode (PHP_EOL , $ debug_info );
120120
121121 return Request::sendMessage ($ data );
122122 }
0 commit comments