Completed
Push — master ( 62cb27...c16962 )
by mains
03:25
created

php/Requests/Downvote.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
class Downvote extends AbstractRequest
3
{
4
    public $postId;
5
		
6
    function getApiEndPoint()
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
7
    {
8
        return '/v2/posts/' . $this->postId . '/downvote';
9
    }
10
    function getPayload()
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
11
    {
12
        return array(
13
        );
14
    }
15
    function getMethod()
16
    {
17
        return 'PUT';
18
    }
19
}
20
0 ignored issues
show
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
21