Code Duplication    Length = 14-14 lines in 2 locations

src/Parser/ZipOutputParser.php 2 locations

@@ 77-90 (lines=14) @@
74
        /**
75
         * @inheritdoc
76
         */
77
    public function parseInflatorVersion($output)
78
    {
79
        $lines = array_values(array_filter(explode("\n", $output, 3)));
80
81
        $chunks = explode(' ', $lines[1], 3);
82
83
        if (2 > count($chunks)) {
84
            return null;
85
        }
86
87
        list($name, $version) = $chunks;
88
89
        return $version;
90
    }
91
92
    /**
93
     * @inheritdoc
@@ 95-108 (lines=14) @@
92
    /**
93
     * @inheritdoc
94
     */
95
    public function parseDeflatorVersion($output)
96
    {
97
        $lines = array_values(array_filter(explode("\n", $output, 2)));
98
        $firstLine = array_shift($lines);
99
        $chunks = explode(' ', $firstLine, 3);
100
101
        if (2 > count($chunks)) {
102
            return null;
103
        }
104
105
        list($name, $version) = $chunks;
106
107
        return $version;
108
    }
109
}
110