mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 00:34:40 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
5f737f648f
commit
37ab960266
@ -14,14 +14,15 @@ set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').':'.r
|
||||
chdir(dirname(__FILE__).'/../');
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
|
||||
if(!function_exists("readline")) {
|
||||
function readline($prompt = null){
|
||||
if (!function_exists('readline')) {
|
||||
function readline($prompt = null)
|
||||
{
|
||||
if ($prompt) {
|
||||
echo $prompt;
|
||||
}
|
||||
$fp = fopen("php://stdin","r");
|
||||
$fp = fopen('php://stdin', 'r');
|
||||
$line = rtrim(fgets($fp, 1024));
|
||||
|
||||
return $line;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user