for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Majora\Component\OAuth\Entity;
/**
* Value object to represent a login attempt on an application.
*/
class LoginAttempt
{
* @var array
protected $query;
protected $data;
protected $headers;
* Construct.
*
* @param array $query
* @param array $data
* @param array $headers
public function __construct(array $query, array $data, array $headers)
$this->query = $query;
$this->data = $data;
$this->headers = $headers;
}
* Returns query value under given key if defined, null otherwise.
* @param string $query
$query
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.
* @return mixed
public function getQuery($key)
return isset($this->query[$key]) ?
$this->query[$key] :
null
;
* Returns data value under given key if defined, null otherwise.
* @param string $data
$data
public function getData($key)
return isset($this->data[$key]) ?
$this->data[$key] :
* Returns headers value under given key if defined, null otherwise.
* @param string $headers
$headers
public function getHeaders($key)
return isset($this->headers[$key]) ?
$this->headers[$key] :
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.