for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace common\tests\unit;
use yii;
use yii\base\Component;
/**
* FakeUser model
*/
class FakeWebUser extends Component
{
public $identityClass;
public $enableAutoLogin;
public $identityCookie;
public function login($identity, $duration = 0) {
$identity
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function login(/** @scrutinizer ignore-unused */ $identity, $duration = 0) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$duration
public function login($identity, /** @scrutinizer ignore-unused */ $duration = 0) {
return true;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.