for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AsimovExpress\AdobeConnect\Http;
class Response
{
/**
* Http status code received.
*
* @var int
*/
protected $statusCode;
* Http response body.
* @var string
protected $content;
* Initilizes an instance of Response.
* @param resource $curl_resource Curl resource instance.
* @param string $result Response content.
$result
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($curl_resource, $content)
$info = curl_getinfo($curl_resource);
$this->statusCode = $info['http_code'];
$this->content = $content;
}
* Http status code received from the server.
* @return int
public function getStatusCode()
return $this->statusCode;
* @return string
public function getContent()
return $this->content;
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.