1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

fix cs and phpdoc

This commit is contained in:
Thomas Citharel 2016-10-09 14:01:28 +02:00 committed by Jeremy Benoist
parent b1e92f8c14
commit 0c271b9eb0
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
4 changed files with 34 additions and 26 deletions

View file

@ -27,7 +27,7 @@ class WallabagAnnotationController extends FOSRestController
->getRepository('WallabagAnnotationBundle:Annotation')
->findAnnotationsByPageId($entry->getId(), $this->getUser()->getId());
$total = count($annotationRows);
$annotations = array('total' => $total, 'rows' => $annotationRows);
$annotations = ['total' => $total, 'rows' => $annotationRows];
$json = $this->get('serializer')->serialize($annotations, 'json');