Code Duplication    Length = 3-3 lines in 2 locations

src/think/console/output/driver/Console.php 2 locations

@@ 181-183 (lines=3) @@
178
        }
179
180
        if ($sttyString = $this->getSttyColumns()) {
181
            if (preg_match('/rows.(\d+);.columns.(\d+);/i', $sttyString, $matches)) {
182
                return [(int) $matches[2], (int) $matches[1]];
183
            }
184
            if (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) {
185
                return [(int) $matches[2], (int) $matches[1]];
186
            }
@@ 184-186 (lines=3) @@
181
            if (preg_match('/rows.(\d+);.columns.(\d+);/i', $sttyString, $matches)) {
182
                return [(int) $matches[2], (int) $matches[1]];
183
            }
184
            if (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) {
185
                return [(int) $matches[2], (int) $matches[1]];
186
            }
187
        }
188
189
        return [null, null];