@@ -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 | * |
@@ -40,10 +40,10 @@ |
||
40 | 40 | $context['_parent'] = (array) $context; |
41 | 41 | $context['_seq'] = twig_ensure_traversable((isset($context["tree"]) ? $context["tree"] : $this->getContext($context, "tree"))); |
42 | 42 | $context['loop'] = array( |
43 | - 'parent' => $context['_parent'], |
|
44 | - 'index0' => 0, |
|
45 | - 'index' => 1, |
|
46 | - 'first' => true, |
|
43 | + 'parent' => $context['_parent'], |
|
44 | + 'index0' => 0, |
|
45 | + 'index' => 1, |
|
46 | + 'first' => true, |
|
47 | 47 | ); |
48 | 48 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { |
49 | 49 | $length = count($context['_seq']); |
@@ -182,10 +182,10 @@ discard block |
||
182 | 182 | $context['_parent'] = (array) $context; |
183 | 183 | $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "interfaces")); |
184 | 184 | $context['loop'] = array( |
185 | - 'parent' => $context['_parent'], |
|
186 | - 'index0' => 0, |
|
187 | - 'index' => 1, |
|
188 | - 'first' => true, |
|
185 | + 'parent' => $context['_parent'], |
|
186 | + 'index0' => 0, |
|
187 | + 'index' => 1, |
|
188 | + 'first' => true, |
|
189 | 189 | ); |
190 | 190 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { |
191 | 191 | $length = count($context['_seq']); |
@@ -483,10 +483,10 @@ discard block |
||
483 | 483 | $context['_parent'] = (array) $context; |
484 | 484 | $context['_seq'] = twig_ensure_traversable((isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods"))); |
485 | 485 | $context['loop'] = array( |
486 | - 'parent' => $context['_parent'], |
|
487 | - 'index0' => 0, |
|
488 | - 'index' => 1, |
|
489 | - 'first' => true, |
|
486 | + 'parent' => $context['_parent'], |
|
487 | + 'index0' => 0, |
|
488 | + 'index' => 1, |
|
489 | + 'first' => true, |
|
490 | 490 | ); |
491 | 491 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { |
492 | 492 | $length = count($context['_seq']); |
@@ -558,10 +558,10 @@ discard block |
||
558 | 558 | $context['_parent'] = (array) $context; |
559 | 559 | $context['_seq'] = twig_ensure_traversable((isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods"))); |
560 | 560 | $context['loop'] = array( |
561 | - 'parent' => $context['_parent'], |
|
562 | - 'index0' => 0, |
|
563 | - 'index' => 1, |
|
564 | - 'first' => true, |
|
561 | + 'parent' => $context['_parent'], |
|
562 | + 'index0' => 0, |
|
563 | + 'index' => 1, |
|
564 | + 'first' => true, |
|
565 | 565 | ); |
566 | 566 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { |
567 | 567 | $length = count($context['_seq']); |
@@ -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))); |