for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Source\Controllers;
use stdClass;
use Source\Core\Request;
use Source\Core\Response;
use Source\Models\Product;
use Source\Models\Category;
class App
{
private $Message;
private $Request;
public function __construct()
$this->Message = new stdClass();
$this->Request = new Request();
}
public function test()
$this->Message->message = 'this is a test';
(new Response())->setStatusCode(HTTP_OK)->send($this->Message);
public function error($data)
$data
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function error(/** @scrutinizer ignore-unused */ $data)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->Message->message = '404 Not Found';
(new Response())->setStatusCode(HTTP_NOT_FOUND)->send($this->Message);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.