From eaa7065717276e25ed5dea7b8e1abc454f500746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Gr=C4=99da?= Date: Sat, 26 Jan 2019 20:40:13 +0100 Subject: [PATCH] [#8] Fixed line length PHPCS problem --- src/Handler/LogzIoHandler.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Handler/LogzIoHandler.php b/src/Handler/LogzIoHandler.php index 064725c..330a5cb 100644 --- a/src/Handler/LogzIoHandler.php +++ b/src/Handler/LogzIoHandler.php @@ -30,12 +30,12 @@ final class LogzIoHandler extends AbstractProcessingHandler private $endpoint; /** - * @param string $token Log token supplied by Logz.io. - * @param string $type Your log type - it helps classify the logs you send. - * @param bool $ssl Whether or not SSL encryption should be used. - * @param int|string $level The minimum logging level to trigger this handler. - * @param bool $bubble Whether or not messages that are handled should bubble up the stack. - * @param string $listenerName One of existing listeners, e.g. 'listener' or 'listener-eu' + * @param string $token Log token supplied by Logz.io. + * @param string $type Your log type - it helps classify the logs you send. + * @param bool $ssl Whether or not SSL encryption should be used. + * @param int|string $level The minimum logging level to trigger this handler. + * @param bool $bubble Whether or not messages that are handled should bubble up the stack. + * @param string $listener One of existing listeners, e.g. 'listener' or 'listener-eu' * * @throws \LogicException If curl extension is not available. */ @@ -45,14 +45,14 @@ public function __construct( bool $ssl = true, int $level = Logger::DEBUG, bool $bubble = true, - string $listenerName = 'listener' + string $listener = 'listener' ) { $this->token = $token; $this->type = $type; $this->endpoint = $ssl - ? 'https://' . $listenerName . '.logz.io:8071/' - : 'http://' . $listenerName . '.logz.io:8070/'; + ? 'https://' . $listener . '.logz.io:8071/' + : 'http://' . $listener . '.logz.io:8070/'; $this->endpoint .= '?'.http_build_query( [ 'token' => $this->token, @@ -65,7 +65,7 @@ public function __construct( protected function write(array $record) { - $this->send($record[ 'formatted' ]); + $this->send($record['formatted']); } // phpcs:disable Inpsyde.CodeQuality.ArgumentTypeDeclaration.NoArgumentType