Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-04-10 11:49:52 +00:00 committed by StyleCI Bot
parent d8292e9add
commit 0a81bb4755

View File

@ -162,7 +162,9 @@ description: '.$this->settings['description'].'
$params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', '; $params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', ';
$lua_params .= $param['name'].'='; $lua_params .= $param['name'].'=';
$lua_params .= (isset($param['subtype']) ? '{'.$ptype.'}' : $ptype).', '; $lua_params .= (isset($param['subtype']) ? '{'.$ptype.'}' : $ptype).', ';
if ($param['name'] === 'reply_markup') $hasreplymarkup = true; if ($param['name'] === 'reply_markup') {
$hasreplymarkup = true;
}
if ($param['name'] === 'entities') { if ($param['name'] === 'entities') {
$hasentities = true; $hasentities = true;
$table .= '|parse\_mode| [string](../types/string.md) | Optional | $table .= '|parse\_mode| [string](../types/string.md) | Optional |
@ -407,8 +409,9 @@ description: List of methods
$params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', '; $params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', ';
$lua_params .= $param['name'].'='; $lua_params .= $param['name'].'=';
$lua_params .= (isset($param['subtype']) ? '{'.$ptype.'}' : $ptype).', '; $lua_params .= (isset($param['subtype']) ? '{'.$ptype.'}' : $ptype).', ';
if ($param['name'] === 'reply_markup') $hasreplymarkup = true; if ($param['name'] === 'reply_markup') {
$hasreplymarkup = true;
}
} }
$params = "['_' => '".$rconstructor."', ".$params.']'; $params = "['_' => '".$rconstructor."', ".$params.']';
$lua_params = "{_='".$rconstructor."', ".$lua_params.'}'; $lua_params = "{_='".$rconstructor."', ".$lua_params.'}';