Minor code cleanup
parent
b277b8e73c
commit
256955f0f7
|
@ -36,8 +36,8 @@ class Pool
|
||||||
$this->repositories[] = $repo;
|
$this->repositories[] = $repo;
|
||||||
|
|
||||||
foreach ($repo->getPackages() as $package) {
|
foreach ($repo->getPackages() as $package) {
|
||||||
|
$package->setId(count($this->packages));
|
||||||
$this->packages[] = $package;
|
$this->packages[] = $package;
|
||||||
$package->setId(sizeof($this->packages) - 1);
|
|
||||||
|
|
||||||
foreach ($package->getNames() as $name) {
|
foreach ($package->getNames() as $name) {
|
||||||
$this->packageByName[$name][] = $package;
|
$this->packageByName[$name][] = $package;
|
||||||
|
|
Loading…
Reference in New Issue