for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Arthem\GoogleApi\Domain\Place\Query\Search;
use Arthem\GoogleApi\Domain\Place\VO\Location;
use Arthem\GoogleApi\Domain\Place\VO\Query;
use Arthem\GoogleApi\Domain\Place\VO\Radius;
class TextSearchQuery
{
/**
* @var Query
*/
private $query;
* @var Location
private $location;
* @var Radius
private $radius;
* @param string $query
* @param float|null $latitude
* @param float|null $longitude
* @param int|float|null $radius
* @param string|null $name
$name
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($query, $latitude = null, $longitude = null, $radius = null)
$this->query = new Query($query);
if (null !== $latitude) {
$this->location = new Location($latitude, $longitude);
}
if (null !== $radius) {
$this->radius = new Radius($radius);
* @return Query
public function getQuery()
return $this->query;
* @return Location|null
public function getLocation()
return $this->location;
* @return Radius|null
public function getRadius()
return $this->radius;
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.