These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the NNTP library. |
||
5 | * |
||
6 | * (c) Robin van der Vleuten <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace Rvdv\Nntp\Command; |
||
13 | |||
14 | use Rvdv\Nntp\Exception\RuntimeException; |
||
15 | use Rvdv\Nntp\Response\Response; |
||
16 | |||
17 | /** |
||
18 | * PostCommand. |
||
19 | * |
||
20 | * @author thebandit |
||
21 | */ |
||
22 | class PostCommand extends Command implements CommandInterface |
||
23 | { |
||
24 | /** |
||
25 | * Constructor. |
||
26 | */ |
||
27 | 7 | public function __construct() |
|
28 | { |
||
29 | 7 | parent::__construct(); |
|
30 | 7 | } |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 1 | public function __invoke() |
|
36 | { |
||
37 | 1 | return 'POST'; |
|
38 | } |
||
39 | |||
40 | 1 | public function onSendArticle(Response $response) |
|
0 ignored issues
–
show
|
|||
41 | { |
||
42 | 1 | } |
|
43 | |||
44 | 1 | public function onPostingNotPermitted(Response $response) |
|
45 | { |
||
46 | 1 | throw new RuntimeException('Posting not permitted.', $response->getStatusCode()); |
|
47 | } |
||
48 | } |
||
49 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.