for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SDIS62\Core\Ops\Entity;
use Datetime;
class Coordinates
{
/**
* Latitude.
*
* @var float
*/
protected $latitude;
* Longitude.
protected $longitude;
* Timestamp.
* @var Datetime
protected $date;
* Création d'une coordonnée.
* @param float $x
$x
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.
* @param float $y
$y
* @param Datetime $date
public function __construct($latitude, $longitude, Datetime $date = null)
$this->setCoordinates($latitude, $longitude, $date);
}
* Set the value of Point Y.
* @return self
public function setCoordinates($latitude, $longitude, Datetime $date = null)
$this->latitude = $latitude;
$this->longitude = $longitude;
$this->date = empty($date) ? new Datetime() : $date;
return $this;
* Get the value of Point X.
* @return float
public function getLatitude()
return $this->latitude;
* Get the value of Point Y.
public function getLongitude()
return $this->longitude;
* Get the value of Timestamp.
* @return Datetime
public function getDate()
return $this->date;
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.