Skip to content

Commit 4e55ef3

Browse files
committed
Fix PHPdocs messages
1 parent e99058a commit 4e55ef3

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/delete.php.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
* @View(statusCode=204)
1818
*
1919
* @param Request $request
20-
* @param $entity
21-
* @internal param $id
20+
* @param $id
2221
*
2322
* @return Response
2423
{% endblock phpdoc_method_header %}

src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/getById.php.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* @View(serializerEnableMaxDepthChecks=true)
1818
*
1919
* @return Response
20+
* @param $id
2021
{% endblock phpdoc_method_header %}
2122
{% block phpdoc_method_annotations %}
2223
{% if 'annotation' == format %}

src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/getOr404.php.twig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
1+
/**
2+
{% block phpdoc_method_header %}
3+
* Get a entity or throw a exception
4+
*
5+
* @param $id
6+
* @return $entity
7+
{% endblock phpdoc_method_header %}
8+
*/
29
{% block method_definition %}
310
protected function getOr404($id)
411
{% endblock method_definition %}

src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/patch.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @View(serializerEnableMaxDepthChecks=true)
1919
*
2020
* @param Request $request
21-
* @param $entity
21+
* @param $id
2222
*
2323
* @return Response
2424
{% endblock phpdoc_method_header %}

src/Voryx/RESTGeneratorBundle/Resources/skeleton/rest/actions/put.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @View(serializerEnableMaxDepthChecks=true)
2020
*
2121
* @param Request $request
22-
* @param $entity
22+
* @param $id
2323
*
2424
* @return Response
2525
{% endblock phpdoc_method_header %}

0 commit comments

Comments
 (0)