@@ -414,6 +414,9 @@ discard block |
||
414 | 414 | . sprintf('%s.phar.temp.pubkey', $this->getLocalPharFileBasename()); |
415 | 415 | } |
416 | 416 | |
417 | + /** |
|
418 | + * @param string|null $localPharFile |
|
419 | + */ |
|
417 | 420 | protected function setLocalPharFile($localPharFile) |
418 | 421 | { |
419 | 422 | if (!is_null($localPharFile)) { |
@@ -458,6 +461,9 @@ discard block |
||
458 | 461 | $this->tempDirectory = $tempDirectory; |
459 | 462 | } |
460 | 463 | |
464 | + /** |
|
465 | + * @param string $phar |
|
466 | + */ |
|
461 | 467 | protected function validatePhar($phar) |
462 | 468 | { |
463 | 469 | $phar = realpath($phar); |
@@ -126,6 +126,8 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @param string |
128 | 128 | * @param string |
129 | + * @param string|boolean $version1 |
|
130 | + * @param string $version2 |
|
129 | 131 | * @return bool |
130 | 132 | */ |
131 | 133 | public static function equals($version1, $version2) |
@@ -202,6 +204,9 @@ discard block |
||
202 | 204 | return false; |
203 | 205 | } |
204 | 206 | |
207 | + /** |
|
208 | + * @return string |
|
209 | + */ |
|
205 | 210 | private static function stripGitHash($version) |
206 | 211 | { |
207 | 212 | if (preg_match(self::GIT_DATA_MATCH, $version, $matches)) { |