@@ 306-308 (lines=3) @@ | ||
303 | ||
304 | protected function doTarExtract($options, ResourceInterface $resource, $to = null) |
|
305 | { |
|
306 | if (null !== $to && !is_dir($to)) { |
|
307 | throw new InvalidArgumentException(sprintf("%s is not a directory", $to)); |
|
308 | } |
|
309 | ||
310 | $builder = $this |
|
311 | ->inflator |
|
@@ 359-361 (lines=3) @@ | ||
356 | */ |
|
357 | protected function doTarExtractMembers($options, ResourceInterface $resource, $members, $to = null, $overwrite = false) |
|
358 | { |
|
359 | if (null !== $to && !is_dir($to)) { |
|
360 | throw new InvalidArgumentException(sprintf("%s is not a directory", $to)); |
|
361 | } |
|
362 | ||
363 | $members = (array) $members; |
|
364 |
@@ 291-293 (lines=3) @@ | ||
288 | */ |
|
289 | protected function doExtract(ResourceInterface $resource, $to) |
|
290 | { |
|
291 | if (null !== $to && !is_dir($to)) { |
|
292 | throw new InvalidArgumentException(sprintf("%s is not a directory", $to)); |
|
293 | } |
|
294 | ||
295 | $builder = $this |
|
296 | ->deflator |
|
@@ 329-331 (lines=3) @@ | ||
326 | */ |
|
327 | protected function doExtractMembers(ResourceInterface $resource, $members, $to, $overwrite = false) |
|
328 | { |
|
329 | if (null !== $to && !is_dir($to)) { |
|
330 | throw new InvalidArgumentException(sprintf("%s is not a directory", $to)); |
|
331 | } |
|
332 | ||
333 | $members = (array) $members; |
|
334 |