Code Duplication    Length = 3-3 lines in 2 locations

WebStream/Log/Outputter/FileOutputter.php 2 locations

@@ 97-99 (lines=3) @@
94
     */
95
    public function enableDirectWrite()
96
    {
97
        if ($this->isLazyWrite && $this->cache->length() > 0) {
98
            $this->writeLog(implode("", $this->cache->get()));
99
        }
100
101
        $this->isLazyWrite = false;
102
        $this->cache = null;
@@ 126-128 (lines=3) @@
123
     */
124
    private function flush()
125
    {
126
        if ($this->isLazyWrite && $this->cache->length() > 0) {
127
            $this->writeLog(implode("", $this->cache->get()));
128
        }
129
    }
130
131
    /**