Apply fixes from StyleCI
This commit is contained in:
parent
1f18cf6ab9
commit
5eddc101dc
@ -218,8 +218,8 @@ while (true) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {}
|
||||
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
}
|
||||
}
|
||||
\danog\MadelineProto\Serialization::serialize('pipesbot.madeline', $MadelineProto);
|
||||
\danog\MadelineProto\Serialization::serialize('pwr.madeline', $uMadelineProto);
|
||||
|
@ -470,8 +470,12 @@ trait BotAPI
|
||||
$text_arr = [];
|
||||
foreach ($this->multipleExplodeKeepDelimiters(["\n"], $text) as $word) {
|
||||
if (strlen($word) > 4096) {
|
||||
foreach (str_split($word, 4096) as $vv) { $text_arr []= $vv; }
|
||||
} else $text_arr []= $word;
|
||||
foreach (str_split($word, 4096) as $vv) {
|
||||
$text_arr[] = $vv;
|
||||
}
|
||||
} else {
|
||||
$text_arr[] = $word;
|
||||
}
|
||||
}
|
||||
$i = 0;
|
||||
$message[0] = '';
|
||||
@ -501,7 +505,7 @@ trait BotAPI
|
||||
$finalArray = [];
|
||||
foreach ($initialArray as $item) {
|
||||
if (strlen($item) > 0) {
|
||||
$finalArray []= $item.$string[strpos($string, $item)+strlen($item)];
|
||||
$finalArray[] = $item.$string[strpos($string, $item) + strlen($item)];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user