Przeglądaj źródła

info is uncountable

Elan Ruusamäe 10 lat temu
rodzic
commit
b72866e6dd
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      src/Monolog/Handler/CubeHandler.php

+ 7 - 7
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);
     }