Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-08-28 10:45:11 +00:00 committed by StyleCI Bot
parent d69a27867f
commit 52eaa053a8

View File

@ -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: