for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author: jiangyi
* @date: 下午5:26 2018/11/28
*/
namespace Hello;
class Observer
{
public function update($argument)
$argument
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function update(/** @scrutinizer ignore-unused */ $argument)
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 reportError($errorCode, $errorMessage, Subject $subject)
$errorMessage
public function reportError($errorCode, /** @scrutinizer ignore-unused */ $errorMessage, Subject $subject)
$errorCode
public function reportError(/** @scrutinizer ignore-unused */ $errorCode, $errorMessage, Subject $subject)
$subject
public function reportError($errorCode, $errorMessage, /** @scrutinizer ignore-unused */ Subject $subject)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.