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:
parent
b1e92f8c14
commit
0c271b9eb0
4 changed files with 34 additions and 26 deletions
|
@ -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');
|
||||
|
||||
|
|
|
@ -536,12 +536,9 @@ class WallabagRestController extends FOSRestController
|
|||
{
|
||||
$this->validateAuthentication();
|
||||
|
||||
$response = $this->forward('WallabagApiBundle:WallabagRest:getAnnotations',
|
||||
[
|
||||
'entry' => $entry,
|
||||
]);
|
||||
|
||||
return $response;
|
||||
return $this->forward('WallabagApiBundle:WallabagRest:getAnnotations', [
|
||||
'entry' => $entry,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -563,13 +560,10 @@ class WallabagRestController extends FOSRestController
|
|||
{
|
||||
$this->validateAuthentication();
|
||||
|
||||
$response = $this->forward('WallabagApiBundle:WallabagRest:postAnnotation',
|
||||
[
|
||||
return $this->forward('WallabagApiBundle:WallabagRest:postAnnotation', [
|
||||
'request' => $request,
|
||||
'entry' => $entry,
|
||||
]);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -592,13 +586,10 @@ class WallabagRestController extends FOSRestController
|
|||
{
|
||||
$this->validateAuthentication();
|
||||
|
||||
$response = $this->forward('WallabagApiBundle:WallabagRest:putAnnotation',
|
||||
[
|
||||
return $this->forward('WallabagApiBundle:WallabagRest:putAnnotation', [
|
||||
'annotation' => $annotation,
|
||||
'request' => $request,
|
||||
]);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -620,12 +611,9 @@ class WallabagRestController extends FOSRestController
|
|||
{
|
||||
$this->validateAuthentication();
|
||||
|
||||
$response = $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation',
|
||||
[
|
||||
return $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation', [
|
||||
'annotation' => $annotation,
|
||||
]);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue