Code Duplication    Length = 12-12 lines in 2 locations

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
     * バッファをクリアする

Outputter/FileOutputter.php 1 location

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