Code Duplication    Length = 12-12 lines in 2 locations

WebStream/Log/Outputter/ConsoleOutputter.php 1 location

@@ 81-92 (lines=12) @@
78
    /**
79
     * {@inheritdoc}
80
     */
81
    public function write($message)
82
    {
83
        if ($this->isLazyWrite) {
84
            if (count($this->logMessages) >= $this->bufferSize) {
85
                $this->flush();
86
                $this->clear();
87
            }
88
            $this->logMessages[] = $message;
89
        } else {
90
            $this->writeLog($message);
91
        }
92
    }
93
94
    /**
95
     * バッファをクリアする

WebStream/Log/Outputter/FileOutputter.php 1 location

@@ 108-119 (lines=12) @@
105
    /**
106
     * {@inheritdoc}
107
     */
108
    public function write($message)
109
    {
110
        if ($this->isLazyWrite) {
111
            if ($this->cache->length() >= $this->bufferSize) {
112
                $this->flush();
113
                $this->clear();
114
            }
115
            $this->cache->add($message);
116
        } else {
117
            $this->writeLog($message);
118
        }
119
    }
120
121
    /**
122
     * バッファをログ出力する