for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: peter
* Date: 20.07.18
* Time: 13:51
*/
namespace Maslosoft\Whitelist\Helpers;
use Maslosoft\Whitelist\Interfaces\TokenInterface;
class ErrorCollector
{
private $errors = [];
$errors
public function forbidden(TokenInterface $token)
$token
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function forbidden(/** @scrutinizer ignore-unused */ TokenInterface $token)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
public function required(TokenInterface $token)
public function required(/** @scrutinizer ignore-unused */ TokenInterface $token)