Skip to content

Commit

Permalink
Codesniffer: fix phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Aug 21, 2023
1 parent 40b775b commit a75b936
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 0 additions & 3 deletions app/Module/V1/StaticController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ public function __construct(string $text)
/**
* @Apitte\OpenApi("
* summary: Get static text
* ")
* @Apitte\Path("/text")
* @Apitte\Method("GET")
*/
public function text(ApiRequest $request): string
{
Expand Down
7 changes: 0 additions & 7 deletions app/Module/V1/UsersOneController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function __construct(UsersFacade $usersFacade)
* @Apitte\Method("GET")
* @Apitte\RequestParameters({
* @Apitte\RequestParameter(name="email", in="query", type="string", description="User e-mail address")
* })
*/
public function byEmail(ApiRequest $request): UserResDto
{
Expand All @@ -49,12 +48,6 @@ public function byEmail(ApiRequest $request): UserResDto
/**
* @Apitte\OpenApi("
* summary: Get user by id.
* ")
* @Apitte\Path("/{id}")
* @Apitte\Method("GET")
* @Apitte\RequestParameters({
* @Apitte\RequestParameter(name="id", in="path", type="int", description="User ID")
* })
*/
public function byId(ApiRequest $request): UserResDto
{
Expand Down
4 changes: 4 additions & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
</properties>
</rule>

<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountAfterLastContent">
<exclude-pattern>*Controller.php</exclude-pattern>
</rule>

<!-- Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>

0 comments on commit a75b936

Please sign in to comment.