Jordi Boggiano 12 years ago
parent
commit
cc17c1488a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Packagist/WebBundle/Controller/WebController.php

+ 1 - 1
src/Packagist/WebBundle/Controller/WebController.php

@@ -97,7 +97,7 @@ class WebController extends Controller
         try {
             $popular = array();
             $popularIds = $this->get('snc_redis.default')->zrevrange('downloads:trending', 0, 9);
-            if ($popularIds){
+            if ($popularIds) {
                 $popular = $pkgRepo->createQueryBuilder('p')->where('p.id IN (:ids)')->setParameter('ids', $popularIds)->getQuery()->getResult();
                 usort($popular, function ($a, $b) use ($popularIds) {
                     return array_search($a->getId(), $popularIds) > array_search($b->getId(), $popularIds) ? 1 : -1;