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; 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': case 'br':
$nmessage .= "\n"; $nmessage .= "\n";
break; break;
@ -630,6 +632,7 @@ trait TL
break; break;
} }
} }
public function parse_mode($arguments) public function parse_mode($arguments)
{ {
if (preg_match('/markdown/i', $arguments['parse_mode'])) { if (preg_match('/markdown/i', $arguments['parse_mode'])) {
@ -649,9 +652,10 @@ trait TL
} }
unset($arguments['parse_mode']); unset($arguments['parse_mode']);
} catch (\DOMException $e) { } catch (\DOMException $e) {
} catch (\danog\MadelineProto\Exception $e) { ; }; } catch (\danog\MadelineProto\Exception $e) {
}
} }
$arguments['message'] = $nmessage; $arguments['message'] = $nmessage;
return $arguments; return $arguments;
} }