From 8b2b13546e442c2321b23e74fe17570073213b6a Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 19 Nov 2016 13:13:39 +0200 Subject: [PATCH] Format constructors on a single line This is for consistency with the rest of the handlers. --- src/Monolog/Handler/SlackWebhookHandler.php | 13 ++----------- src/Monolog/Handler/SlackbotHandler.php | 9 ++------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/Monolog/Handler/SlackWebhookHandler.php b/src/Monolog/Handler/SlackWebhookHandler.php index f4c9f780..a2df0f1a 100644 --- a/src/Monolog/Handler/SlackWebhookHandler.php +++ b/src/Monolog/Handler/SlackWebhookHandler.php @@ -46,17 +46,8 @@ class SlackWebhookHandler extends AbstractProcessingHandler * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct( - $webhookUrl, - $channel = null, - $username = 'Monolog', - $useAttachment = true, - $iconEmoji = null, - $useShortAttachment = false, - $includeContextAndExtra = false, - $level = Logger::CRITICAL, - $bubble = true - ) { + public function __construct($webhookUrl, $channel = null, $username = 'Monolog', $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeContextAndExtra = false, $level = Logger::CRITICAL, $bubble = true) + { parent::__construct($level, $bubble); $this->webhookUrl = $webhookUrl; diff --git a/src/Monolog/Handler/SlackbotHandler.php b/src/Monolog/Handler/SlackbotHandler.php index de6051bc..baead525 100644 --- a/src/Monolog/Handler/SlackbotHandler.php +++ b/src/Monolog/Handler/SlackbotHandler.php @@ -46,13 +46,8 @@ class SlackbotHandler extends AbstractProcessingHandler * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct( - $slackTeam, - $token, - $channel, - $level = Logger::CRITICAL, - $bubble = true - ) { + public function __construct($slackTeam, $token, $channel, $level = Logger::CRITICAL, $bubble = true) + { parent::__construct($level, $bubble); $this->slackTeam = $slackTeam;