for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// | Copyright (c) 2006~2015 http://thinkphp.cn All rights reserved.
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// | Author: yunwuxin <[email protected]>
namespace think\console\output\driver;
use think\console\Output;
class Nothing
{
public function __construct(Output $output)
$output
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function __construct(/** @scrutinizer ignore-unused */ Output $output)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// do nothing
}
public function write($messages, bool $newline = false, int $options = 0)
$messages
public function write(/** @scrutinizer ignore-unused */ $messages, bool $newline = false, int $options = 0)
$options
public function write($messages, bool $newline = false, /** @scrutinizer ignore-unused */ int $options = 0)
$newline
public function write($messages, /** @scrutinizer ignore-unused */ bool $newline = false, int $options = 0)
public function renderException(\Throwable $e)
$e
public function renderException(/** @scrutinizer ignore-unused */ \Throwable $e)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.