forked from wallabag/wallabag
Fix typo & CS
This commit is contained in:
@ -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) {
|
||||||
|
|||||||
@ -138,8 +138,9 @@ class EntryRepository extends EntityRepository
|
|||||||
*/
|
*/
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user