diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2018-09-05 14:25:32 +0200 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2018-09-05 14:25:32 +0200 |
commit | 2a1ceb67b4400f46f4d3067e887ff54aa906f0a2 (patch) | |
tree | df0b695eb99e96dc55b63b27a404080c23421639 /src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php | |
parent | 685a5d745e2b723a09111d7d31157cced67ea9b4 (diff) | |
download | wallabag-2a1ceb67b4400f46f4d3067e887ff54aa906f0a2.tar.gz wallabag-2a1ceb67b4400f46f4d3067e887ff54aa906f0a2.tar.zst wallabag-2a1ceb67b4400f46f4d3067e887ff54aa906f0a2.zip |
php-cs-fixer
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php')
-rw-r--r-- | src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php b/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php index f3090e65..3a7421c7 100644 --- a/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php +++ b/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php | |||
@@ -28,7 +28,7 @@ class WallabagAnnotationController extends FOSRestController | |||
28 | ->getDoctrine() | 28 | ->getDoctrine() |
29 | ->getRepository('WallabagAnnotationBundle:Annotation') | 29 | ->getRepository('WallabagAnnotationBundle:Annotation') |
30 | ->findAnnotationsByPageId($entry->getId(), $this->getUser()->getId()); | 30 | ->findAnnotationsByPageId($entry->getId(), $this->getUser()->getId()); |
31 | $total = count($annotationRows); | 31 | $total = \count($annotationRows); |
32 | $annotations = ['total' => $total, 'rows' => $annotationRows]; | 32 | $annotations = ['total' => $total, 'rows' => $annotationRows]; |
33 | 33 | ||
34 | $json = $this->get('jms_serializer')->serialize($annotations, 'json'); | 34 | $json = $this->get('jms_serializer')->serialize($annotations, 'json'); |