diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 11:36:01 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 12:25:29 +0200 |
commit | 4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch) | |
tree | 3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/AnnotationBundle/Controller | |
parent | 7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff) | |
download | wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip |
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Controller')
-rw-r--r-- | src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php b/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php index 5f981eb5..ad083e31 100644 --- a/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php +++ b/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php | |||
@@ -30,7 +30,7 @@ class WallabagAnnotationController extends FOSRestController | |||
30 | ->getRepository('WallabagAnnotationBundle:Annotation') | 30 | ->getRepository('WallabagAnnotationBundle:Annotation') |
31 | ->findAnnotationsByPageId($entry->getId(), $this->getUser()->getId()); | 31 | ->findAnnotationsByPageId($entry->getId(), $this->getUser()->getId()); |
32 | $total = count($annotationRows); | 32 | $total = count($annotationRows); |
33 | $annotations = array('total' => $total, 'rows' => $annotationRows); | 33 | $annotations = ['total' => $total, 'rows' => $annotationRows]; |
34 | 34 | ||
35 | $json = $this->get('serializer')->serialize($annotations, 'json'); | 35 | $json = $this->get('serializer')->serialize($annotations, 'json'); |
36 | 36 | ||
@@ -141,6 +141,6 @@ class WallabagAnnotationController extends FOSRestController | |||
141 | */ | 141 | */ |
142 | private function renderJsonResponse($json, $code = 200) | 142 | private function renderJsonResponse($json, $code = 200) |
143 | { | 143 | { |
144 | return new Response($json, $code, array('application/json')); | 144 | return new Response($json, $code, ['application/json']); |
145 | } | 145 | } |
146 | } | 146 | } |