aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2018-09-05 16:38:20 +0000
committerGitHub <noreply@github.com>2018-09-05 16:38:20 +0000
commitada5d5b2694ec95c6ca84aa91f22add1973343e0 (patch)
treedf0b695eb99e96dc55b63b27a404080c23421639 /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent685a5d745e2b723a09111d7d31157cced67ea9b4 (diff)
parent2a1ceb67b4400f46f4d3067e887ff54aa906f0a2 (diff)
downloadwallabag-ada5d5b2694ec95c6ca84aa91f22add1973343e0.tar.gz
wallabag-ada5d5b2694ec95c6ca84aa91f22add1973343e0.tar.zst
wallabag-ada5d5b2694ec95c6ca84aa91f22add1973343e0.zip
Merge pull request #3716 from wallabag/csfixer
php-cs-fixer: native_function_invocation
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index b5e35eff..38a3026d 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -151,7 +151,7 @@ class EntryRepository extends EntityRepository
151 $qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since))); 151 $qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since)));
152 } 152 }
153 153
154 if (is_string($tags) && '' !== $tags) { 154 if (\is_string($tags) && '' !== $tags) {
155 foreach (explode(',', $tags) as $i => $tag) { 155 foreach (explode(',', $tags) as $i => $tag) {
156 $entryAlias = 'e' . $i; 156 $entryAlias = 'e' . $i;
157 $tagAlias = 't' . $i; 157 $tagAlias = 't' . $i;
@@ -320,7 +320,7 @@ class EntryRepository extends EntityRepository
320 ->getQuery() 320 ->getQuery()
321 ->getResult(); 321 ->getResult();
322 322
323 if (count($res)) { 323 if (\count($res)) {
324 return current($res); 324 return current($res);
325 } 325 }
326 326