We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
5 | trait Revisions |
||
6 | { |
||
7 | /** |
||
8 | * Display the revisions for specified resource. |
||
9 | * |
||
10 | * @param int $id |
||
11 | * |
||
12 | * @return Response |
||
|
|||
13 | */ |
||
14 | public function listRevisions($id) |
||
31 | |||
32 | /** |
||
33 | * Restore a specific revision for the specified resource. |
||
34 | * |
||
35 | * Used via AJAX in the revisions view |
||
36 | * |
||
37 | * @param int $id |
||
38 | * |
||
39 | * @return JSON Response containing the new revision that was created from the update |
||
40 | * @return HTTP 500 if the request did not contain the revision ID |
||
41 | */ |
||
42 | public function restoreRevision($id) |
||
61 | } |
||
62 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.