1
0
Fork 0

Minor cleanups

pull/1856/head
Jordi Boggiano 2013-05-02 17:41:55 +02:00
parent 7687d189e3
commit 326faf2b51
1 changed files with 3 additions and 4 deletions

View File

@ -209,9 +209,7 @@ class Pool
*/
public function packageById($id)
{
$this->ensurePackageIsLoaded($this->packages[$id - 1]);
return $this->packages[$id - 1];
return $this->ensurePackageIsLoaded($this->packages[$id - 1]);
}
/**
@ -355,7 +353,8 @@ class Pool
$this->packageByName[$name][$data['id']] = $package;
}
$package->setId($data['id']);
$data = $package;
return $package;
}
return $data;