Skip to content

Commit

Permalink
Trying to fix score fetching problem
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Mar 8, 2017
1 parent b5b702e commit eeebb93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mouf/Packanalyst/Services/PackagistScoreService.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ public function updateAllScores()
$packageResult = (array) $packageResult;
$packages = $this->packageDao->getPackagesByName($packageResult['name']);
foreach ($packages as $package) {
$package->downloads = $packageResult['downloads'];
$package->favers = $packageResult['favers'];
$package = (array) $package;
$package['downloads'] = $packageResult['downloads'];
$package['favers'] = $packageResult['favers'];
$this->packageDao->save($package);
}
}
Expand Down

0 comments on commit eeebb93

Please sign in to comment.