for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the NNTP library.
*
* (c) Robin van der Vleuten <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Rvdv\Nntp\Command;
use Rvdv\Nntp\Exception\RuntimeException;
use Rvdv\Nntp\Response\Response;
/**
* PostCommand.
* @author thebandit
class PostCommand extends Command implements CommandInterface
{
* Constructor.
public function __construct()
parent::__construct();
}
* {@inheritdoc}
public function __invoke()
return 'POST';
public function onSendArticle(Response $response)
$response
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
public function onPostingNotPermitted(Response $response)
throw new RuntimeException('Posting not permitted.', $response->getStatusCode());
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.