for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* User: ms
* Date: 17.09.15
* Time: 00:22
*/
namespace Mvg\RequestHandler\Json;
use Zend\Http\Client;
use Zend\Json\Json as ZendJson;
class HttpGetInterruptions {
* @todo whats wrong with SSL?
This check looks TODO comments that have been left in the code.
TODO
``TODO``s show that something is left unfinished and should be attended to.
* @return array
public function doRequest() {
$url = 'https://www.mvg.de/.rest/betriebsaenderungen/api/interruptions';
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
$client = new Client($url, array(
'adapter' => 'Zend\Http\Client\Adapter\Curl',
'curloptions' => array(
CURLOPT_FOLLOWLOCATION => TRUE,
CURLOPT_SSL_VERIFYPEER => FALSE
)
);
$client->setMethod(\Zend\Http\Request::METHOD_GET);
return ZendJson::decode($client->send()->getBody());
}
This check marks files that end in a newline character, i.e. an empy line.
This check looks
TODO
comments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.