@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @param ParserInterface $parser An output parser |
| 54 | 54 | * @param ResourceManager $manager A resource manager |
| 55 | 55 | * @param ProcessBuilderFactoryInterface $inflator A process builder factory for the inflator binary |
| 56 | - * @param ProcessBuilderFactoryInterface|null $deflator A process builder factory for the deflator binary |
|
| 56 | + * @param ProcessBuilderFactoryInterface $deflator A process builder factory for the deflator binary |
|
| 57 | 57 | */ |
| 58 | 58 | public function __construct( |
| 59 | 59 | ParserInterface $parser, |
@@ -345,6 +345,9 @@ |
||
| 345 | 345 | return new \SplFileInfo($to ? : $resource->getResource()); |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | + /** |
|
| 349 | + * @param string $to |
|
| 350 | + */ |
|
| 348 | 351 | protected function doTarExtractMembers($options, ResourceInterface $resource, $members, $to = null, $overwrite = false) |
| 349 | 352 | { |
| 350 | 353 | if (null !== $to && !is_dir($to)) { |
@@ -301,6 +301,7 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | /** |
| 303 | 303 | * @info is public for PHP 5.3 compatibility, should be private |
| 304 | + * @param string $file |
|
| 304 | 305 | */ |
| 305 | 306 | public function checkReadability(\ZipArchive $zip, $file) |
| 306 | 307 | { |
@@ -314,6 +315,7 @@ discard block |
||
| 314 | 315 | |
| 315 | 316 | /** |
| 316 | 317 | * @info is public for PHP 5.3 compatibility, should be private |
| 318 | + * @param string $file |
|
| 317 | 319 | */ |
| 318 | 320 | public function addFileToZip(\ZipArchive $zip, $file) |
| 319 | 321 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Maps the corresponding parser to the selected adapter |
| 31 | 31 | * |
| 32 | - * @param $adapterName An adapter name |
|
| 32 | + * @param string $adapterName An adapter name |
|
| 33 | 33 | * |
| 34 | 34 | * @return ParserInterface |
| 35 | 35 | * |
@@ -117,12 +117,12 @@ |
||
| 117 | 117 | /** |
| 118 | 118 | * @inheritdoc |
| 119 | 119 | */ |
| 120 | - public function extract($toDirectory) |
|
| 121 | - { |
|
| 120 | + public function extract($toDirectory) |
|
| 121 | + { |
|
| 122 | 122 | $this->adapter->extract($this->resource, $toDirectory); |
| 123 | 123 | |
| 124 | 124 | return $this; |
| 125 | - } |
|
| 125 | + } |
|
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @inheritdoc |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | throw new RuntimeException(sprintf('Failed to parse mtime date from %s', $line)); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - $members[] = array( |
|
| 81 | + $members[] = array( |
|
| 82 | 82 | 'location' => $chunks[7], |
| 83 | 83 | 'size' => $chunks[5], |
| 84 | 84 | 'mtime' => $date, |
@@ -71,9 +71,9 @@ |
||
| 71 | 71 | return $members; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - /** |
|
| 75 | - * @inheritdoc |
|
| 76 | - */ |
|
| 74 | + /** |
|
| 75 | + * @inheritdoc |
|
| 76 | + */ |
|
| 77 | 77 | public function parseInflatorVersion($output) |
| 78 | 78 | { |
| 79 | 79 | $lines = array_values(array_filter(explode("\n", $output, 3))); |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface ProcessBuilderFactoryInterface |
| 18 | 18 | { |
| 19 | - /** |
|
| 20 | - * Returns a new instance of Symfony ProcessBuilder |
|
| 21 | - * |
|
| 22 | - * @return ProcessBuilder |
|
| 23 | - * |
|
| 24 | - * @throws InvalidArgumentException |
|
| 25 | - */ |
|
| 19 | + /** |
|
| 20 | + * Returns a new instance of Symfony ProcessBuilder |
|
| 21 | + * |
|
| 22 | + * @return ProcessBuilder |
|
| 23 | + * |
|
| 24 | + * @throws InvalidArgumentException |
|
| 25 | + */ |
|
| 26 | 26 | public function create(); |
| 27 | 27 | |
| 28 | 28 | /** |