From b72866e6dd44005a45dc356805510a9f5484b456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 9 Nov 2015 18:17:39 +0200 Subject: [PATCH 1/2] info is uncountable --- src/Monolog/Handler/CubeHandler.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Monolog/Handler/CubeHandler.php b/src/Monolog/Handler/CubeHandler.php index d88fed48..8ed799e0 100644 --- a/src/Monolog/Handler/CubeHandler.php +++ b/src/Monolog/Handler/CubeHandler.php @@ -37,21 +37,21 @@ class CubeHandler extends AbstractProcessingHandler */ public function __construct($url, $level = Logger::DEBUG, $bubble = true) { - $urlInfos = parse_url($url); + $urlInfo = parse_url($url); - if (!isset($urlInfos['scheme'], $urlInfos['host'], $urlInfos['port'])) { + if (!isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) { throw new \UnexpectedValueException('URL "'.$url.'" is not valid'); } - if (!in_array($urlInfos['scheme'], $this->acceptedSchemes)) { + if (!in_array($urlInfo['scheme'], $this->acceptedSchemes)) { throw new \UnexpectedValueException( - 'Invalid protocol (' . $urlInfos['scheme'] . ').' + 'Invalid protocol (' . $urlInfo['scheme'] . ').' . ' Valid options are ' . implode(', ', $this->acceptedSchemes)); } - $this->scheme = $urlInfos['scheme']; - $this->host = $urlInfos['host']; - $this->port = $urlInfos['port']; + $this->scheme = $urlInfo['scheme']; + $this->host = $urlInfo['host']; + $this->port = $urlInfo['port']; parent::__construct($level, $bubble); } From a5c56fdf1e1fa983f50d767ecb736f34bd9e39aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 9 Nov 2015 18:21:29 +0200 Subject: [PATCH 2/2] two more minor spelling fixes --- src/Monolog/Handler/CubeHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Handler/CubeHandler.php b/src/Monolog/Handler/CubeHandler.php index 8ed799e0..bcf75955 100644 --- a/src/Monolog/Handler/CubeHandler.php +++ b/src/Monolog/Handler/CubeHandler.php @@ -32,8 +32,8 @@ class CubeHandler extends AbstractProcessingHandler * Create a Cube handler * * @throws \UnexpectedValueException when given url is not a valid url. - * A valid url must consists of three parts : protocol://host:port - * Only valid protocol used by Cube are http and udp + * A valid url must consist of three parts : protocol://host:port + * Only valid protocols used by Cube are http and udp */ public function __construct($url, $level = Logger::DEBUG, $bubble = true) {