mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:59:02 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
d69a27867f
commit
52eaa053a8
@ -171,13 +171,15 @@ description: '.$description.'
|
|||||||
if (!isset($this->settings['td'])) {
|
if (!isset($this->settings['td'])) {
|
||||||
$example .= '### Can bots use this method: **'.($bot ? 'YES' : 'NO')."**\n\n\n";
|
$example .= '### Can bots use this method: **'.($bot ? 'YES' : 'NO')."**\n\n\n";
|
||||||
if (isset($errors['result'][$data['method']])) {
|
if (isset($errors['result'][$data['method']])) {
|
||||||
$example .= '### Errors this method can return:
|
$example .= '### Errors this method can return:
|
||||||
|
|
||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
';
|
';
|
||||||
foreach ($errors['result'][$data['method']] as $error) { $example .= '|'.$error.'|'.$errors['human_result'][$error][0].'|'; }
|
foreach ($errors['result'][$data['method']] as $error) {
|
||||||
$example .= "\n\n";
|
$example .= '|'.$error.'|'.$errors['human_result'][$error][0].'|';
|
||||||
|
}
|
||||||
|
$example .= "\n\n";
|
||||||
}
|
}
|
||||||
$example .= str_replace('[]', '', '### Example:
|
$example .= str_replace('[]', '', '### Example:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user