Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-02-16 19:06:09 +00:00 committed by StyleCI Bot
parent 7e3abd0fe1
commit 1b9c925fc9

View File

@ -573,8 +573,10 @@ trait TL
return $arguments;
}
public function parse_node($node, &$entities, &$nmessage, $recursive = true) {
switch ($node->nodeName) {
public function parse_node($node, &$entities, &$nmessage, $recursive = true)
{
switch ($node->nodeName) {
case 'br':
$nmessage .= "\n";
break;
@ -630,6 +632,7 @@ trait TL
break;
}
}
public function parse_mode($arguments)
{
if (preg_match('/markdown/i', $arguments['parse_mode'])) {
@ -649,9 +652,10 @@ trait TL
}
unset($arguments['parse_mode']);
} catch (\DOMException $e) {
} catch (\danog\MadelineProto\Exception $e) { ; };
} catch (\danog\MadelineProto\Exception $e) {
}
}
$arguments['message'] = $nmessage;
$arguments['message'] = $nmessage;
return $arguments;
}