Skip to content

Commit

Permalink
Merge pull request Ocramius#20 from Ocramius/cs-spacing-in-foreach-block
Browse files Browse the repository at this point in the history
CS (spacing)
  • Loading branch information
Ocramius committed Jun 6, 2016
2 parents 7e9aa66 + 68425c4 commit 7519e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PackageVersions/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ private static function getVersions(Locker $locker, RootPackageInterface $rootPa

$lockData['packages-dev'] = $lockData['packages-dev'] ?? [];

foreach (array_merge($lockData['packages'], $lockData['packages-dev']) as $package) {
foreach (array_merge($lockData['packages'], $lockData['packages-dev']) as $package) {
yield $package['name'] => $package['version'] . '@' . (
$package['source']['reference']?? $package['dist']['reference'] ?? ''
);
}

yield $rootPackage->getName() => $rootPackage->getVersion() . '@' . $rootPackage->getSourceReference();
}
}
}

0 comments on commit 7519e4d

Please sign in to comment.