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

@@ 97-108 (lines=12) @@
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function write($message)
98
    {
99
        if ($this->isLazyWrite) {
100
            if ($this->cache->length() >= $this->bufferSize) {
101
                $this->flush();
102
                $this->clear();
103
            }
104
            $this->cache->add($message);
105
        } else {
106
            $this->writeLog($message);
107
        }
108
    }
109
110
    /**
111
     * バッファをログ出力する