for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CanalTP\AbstractGuzzle;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Response;
abstract class Guzzle
{
/**
* @var string
*/
private $baseUri;
* @param string $baseUrl
$baseUrl
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
public function __construct($config)
if (!empty($config['base_uri'])) {
$this->baseUri = $config['base_uri'];
}
* @return string
public function getBaseUri()
return $this->baseUri;
* @param string $baseUri
*
* @return self
public function setBaseUri($baseUri)
$this->baseUri = $baseUri;
return $this;
* @param Request $request
* @return Response
abstract public function send(Request $request);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.