mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
Fix typo & CS
This commit is contained in:
parent
ad51743e8b
commit
0f2d24feb4
2 changed files with 5 additions and 4 deletions
|
@ -88,7 +88,7 @@ class TagController extends Controller
|
||||||
$tags = $this->get('wallabag_core.tag_repository')
|
$tags = $this->get('wallabag_core.tag_repository')
|
||||||
->findAllFlatTagsWithNbEntries($this->getUser()->getId());
|
->findAllFlatTagsWithNbEntries($this->getUser()->getId());
|
||||||
$untagged = $this->get('wallabag_core.entry_repository')
|
$untagged = $this->get('wallabag_core.entry_repository')
|
||||||
->countUntaggedEntriesForUser($this->getUser()->getId());
|
->countUntaggedEntriesByUser($this->getUser()->getId());
|
||||||
|
|
||||||
$renameForms = [];
|
$renameForms = [];
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
|
|
|
@ -131,15 +131,16 @@ class EntryRepository extends EntityRepository
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the number of untagged entries for a user.
|
* Retrieve the number of untagged entries for a user.
|
||||||
*
|
*
|
||||||
* @param int $userId
|
* @param int $userId
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function countUntaggedEntriesByUser($userId)
|
public function countUntaggedEntriesByUser($userId)
|
||||||
{
|
{
|
||||||
return $this->getRawBuilderForUntaggedByUser($userId)
|
return (int) $this->getRawBuilderForUntaggedByUser($userId)
|
||||||
->select('count(e.id)')
|
->select('count(e.id)')
|
||||||
|
->getQuery()
|
||||||
->getSingleScalarResult();
|
->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue