$tags = $this->get('wallabag_core.tag_repository')
->findAllFlatTagsWithNbEntries($this->getUser()->getId());
$untagged = $this->get('wallabag_core.entry_repository')
- ->countUntaggedEntriesForUser($this->getUser()->getId());
+ ->countUntaggedEntriesByUser($this->getUser()->getId());
$renameForms = [];
foreach ($tags as $tag) {
/**
* 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();
}