@@ 88-101 (lines=14) @@ | ||
85 | /** |
|
86 | * @inheritdoc |
|
87 | */ |
|
88 | public function parseInflatorVersion($output) |
|
89 | { |
|
90 | $lines = array_values(array_filter(explode("\n", $output, 3))); |
|
91 | ||
92 | $chunks = explode(' ', $lines[1], 3); |
|
93 | ||
94 | if (2 > count($chunks)) { |
|
95 | return null; |
|
96 | } |
|
97 | ||
98 | list(, $version) = $chunks; |
|
99 | ||
100 | return $version; |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * @inheritdoc |
|
@@ 106-119 (lines=14) @@ | ||
103 | /** |
|
104 | * @inheritdoc |
|
105 | */ |
|
106 | public function parseDeflatorVersion($output) |
|
107 | { |
|
108 | $lines = array_values(array_filter(explode("\n", $output, 2))); |
|
109 | $firstLine = array_shift($lines); |
|
110 | $chunks = explode(' ', $firstLine, 3); |
|
111 | ||
112 | if (2 > count($chunks)) { |
|
113 | return null; |
|
114 | } |
|
115 | ||
116 | list(, $version) = $chunks; |
|
117 | ||
118 | return $version; |
|
119 | } |
|
120 | } |
|
121 |