for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Entity\Attribute\Accessor\Identity;
/**
* Trait Identity
*/
trait Identity
{
* Set identity
*
* @param string $identity
* @return object
public function setIdentity(?string $identity)
$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 setIdentity(/** @scrutinizer ignore-unused */ ?string $identity)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
* Get identity
* @return string
public function getIdentity(): ?string
$identity = basename(str_replace('\\', '/', get_class($this)));
return $identity;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.