Code Duplication    Length = 4-4 lines in 2 locations

src/UpdateChecker.php 2 locations

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