]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Repository/EntryRepository.php
Fix typo & CS
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Repository / EntryRepository.php
index 77d88c9c25e73f1e98f670559d6ec98ac97cedc5..d967598263c5e1237f7d7e2a2ea6f1a89df3a4ae 100644 (file)
@@ -131,15 +131,16 @@ class EntryRepository extends EntityRepository
 
     /**
      * Retrieve the number of untagged entries for a user.
-     * 
+     *
      * @param int $userId
-     * 
+     *
      * @return int
      */
     public function countUntaggedEntriesByUser($userId)
     {
-        return $this->getRawBuilderForUntaggedByUser($userId)
+        return (int) $this->getRawBuilderForUntaggedByUser($userId)
             ->select('count(e.id)')
+            ->getQuery()
             ->getSingleScalarResult();
     }