ソースを参照

Replace array functions with simple string concatenation

Arnas L 11 年 前
コミット
86c53e2ce1
1 ファイル変更1 行追加3 行削除
  1. 1 3
      src/Monolog/Handler/LogglyHandler.php

+ 1 - 3
src/Monolog/Handler/LogglyHandler.php

@@ -48,9 +48,7 @@ class LogglyHandler extends AbstractProcessingHandler
 
     public function addTag($tag)
     {
-        $tags = (strlen($this->tag) > 0) ? explode(',', $this->tag) : array();
-        $tags[] = $tag;
-        $this->tag = implode(',', $tags);
+        $this->tag = (strlen($this->tag) > 0) ? $this->tag .','. $tag : $tag;
     }
 
     protected function write(array $record)