for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Http;
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
require 'vendor/autoload.php';
class WebSite extends \Slim\App
{
public function __construct()
parent::__construct();
$c = $this->getContainer();
$c['errorHandler'] = function($c) { return new WebErrorHandler();};
$c
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->add(new AuthMiddleware());
$this->add(new ODataMiddleware());
}
public function registerPage($uri, $page)
$this->get($uri, array($page, 'handleRequest'));
public function registerAPI($uri, $api)
$this->group($uri, function() use($api) {$api->setup($this);})->add(new \Http\Rest\SerializationMiddleware());
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.