|
@@ 55-58 (lines=4) @@
|
| 52 |
|
'VersionConstraint' => $constraint, |
| 53 |
|
]; |
| 54 |
|
|
| 55 |
|
if ($available = $this->findLatestPackage($package, $constraint, $installedVersion, $composer, true)) { |
| 56 |
|
$updateInformation[self::TYPE_AVAILABLE . 'Version'] = $available->getPrettyVersion(); |
| 57 |
|
$updateInformation[self::TYPE_AVAILABLE . 'Hash'] = $available->getSourceReference(); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
if ($latest = $this->findLatestPackage($package, $constraint, $installedVersion, $composer, false)) { |
| 61 |
|
$updateInformation[self::TYPE_LATEST . 'Version'] = $latest->getPrettyVersion(); |
|
@@ 60-63 (lines=4) @@
|
| 57 |
|
$updateInformation[self::TYPE_AVAILABLE . 'Hash'] = $available->getSourceReference(); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
if ($latest = $this->findLatestPackage($package, $constraint, $installedVersion, $composer, false)) { |
| 61 |
|
$updateInformation[self::TYPE_LATEST . 'Version'] = $latest->getPrettyVersion(); |
| 62 |
|
$updateInformation[self::TYPE_LATEST . 'Hash'] = $latest->getSourceReference(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
return $updateInformation; |
| 66 |
|
} |