Skip to content

Commit

Permalink
[inpsyde#8] Fixed line length PHPCS problem
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreda committed Jan 26, 2019
1 parent 775eb89 commit eaa7065
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Handler/LogzIoHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit eaa7065

Please sign in to comment.