for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class ConsoleLog
*
* @filesource ConsoleLog.php
* @created 04.01.2018
* @package chillerlan\Logger\Output
* @author Smiley <[email protected]>
* @copyright 2018 Smiley
* @license MIT
*/
namespace chillerlan\Logger\Output;
class ConsoleLog extends LogOutputAbstract{
protected function __log(string $level, string $message, array $context = null){
echo $this->message($level, $message, $context);
}
public function close():LogOutputInterface{
echo $this->message('log closed', '~~~');
return $this;
protected function message(string $level, string $message, array $context = null){
$context
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function message(string $level, string $message, /** @scrutinizer ignore-unused */ array $context = null){
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return sprintf($this->options->consoleFormat, date($this->options->consoleDateFormat), $level, $message).PHP_EOL;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.