From 1b9c925fc91c1dbd4ab395b94807583ebfbf8d07 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 16 Feb 2017 19:06:09 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/TL/TL.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 4537325d..660331c2 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -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; }