for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\DocumentGenerator\PdfLetters\Models\Stats;
use ByTIC\DocumentGenerator\Tests\Fixtures\Models\PdfLetters\PdfLetter;
use Nip\Records\AbstractModels\Record;
use Nip\Records\Traits\AbstractTrait\RecordsTrait as AbstractRecordsTrait;
/**
* Class StatsTrait
* @package ByTIC\DocumentGenerator\PdfLetters\Models\Stats
*/
trait StatsTrait
{
use AbstractRecordsTrait;
* @param PdfLetter|Record $letter
public function compileForLetter($letter)
$letter
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function compileForLetter(/** @scrutinizer ignore-unused */ $letter)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.