Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-05-20 13:46:46 +00:00 committed by StyleCI Bot
parent 1f18cf6ab9
commit 5eddc101dc
2 changed files with 10 additions and 6 deletions

View File

@ -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);

View File

@ -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)];
}
}