@@ 75-93 (lines=19) @@ | ||
72 | /** |
|
73 | * @inheritdoc |
|
74 | */ |
|
75 | protected function doGetInflatorVersion() |
|
76 | { |
|
77 | $process = $this |
|
78 | ->inflator |
|
79 | ->create() |
|
80 | ->add('--version') |
|
81 | ->getProcess(); |
|
82 | ||
83 | $process->run(); |
|
84 | ||
85 | if (!$process->isSuccessful()) { |
|
86 | throw new RuntimeException(sprintf( |
|
87 | 'Unable to execute the following command %s {output: %s}', |
|
88 | $process->getCommandLine(), $process->getErrorOutput() |
|
89 | )); |
|
90 | } |
|
91 | ||
92 | return $this->parser->parseInflatorVersion($process->getOutput() ?: ''); |
|
93 | } |
|
94 | ||
95 | /** |
|
96 | * @inheritdoc |
@@ 183-202 (lines=20) @@ | ||
180 | /** |
|
181 | * @inheritdoc |
|
182 | */ |
|
183 | protected function doGetDeflatorVersion() |
|
184 | { |
|
185 | $process = $this |
|
186 | ->deflator |
|
187 | ->create() |
|
188 | ->add('-h') |
|
189 | ->getProcess(); |
|
190 | ||
191 | $process->run(); |
|
192 | ||
193 | if (!$process->isSuccessful()) { |
|
194 | throw new RuntimeException(sprintf( |
|
195 | 'Unable to execute the following command %s {output: %s}', |
|
196 | $process->getCommandLine(), |
|
197 | $process->getErrorOutput() |
|
198 | )); |
|
199 | } |
|
200 | ||
201 | return $this->parser->parseDeflatorVersion($process->getOutput() ?: ''); |
|
202 | } |
|
203 | ||
204 | /** |
|
205 | * @inheritdoc |
|
@@ 207-226 (lines=20) @@ | ||
204 | /** |
|
205 | * @inheritdoc |
|
206 | */ |
|
207 | protected function doGetInflatorVersion() |
|
208 | { |
|
209 | $process = $this |
|
210 | ->inflator |
|
211 | ->create() |
|
212 | ->add('-h') |
|
213 | ->getProcess(); |
|
214 | ||
215 | $process->run(); |
|
216 | ||
217 | if (!$process->isSuccessful()) { |
|
218 | throw new RuntimeException(sprintf( |
|
219 | 'Unable to execute the following command %s {output: %s}', |
|
220 | $process->getCommandLine(), |
|
221 | $process->getErrorOutput() |
|
222 | )); |
|
223 | } |
|
224 | ||
225 | return $this->parser->parseInflatorVersion($process->getOutput() ?: ''); |
|
226 | } |
|
227 | ||
228 | /** |
|
229 | * @inheritdoc |