for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author SignpostMarv
*/
declare(strict_types=1);
namespace SignpostMarv\DaftFramework\Symfony\Console\Command;
use SignpostMarv\DaftFramework\AttachDaftFramework;
use Symfony\Component\Console\Command\Command as Base;
use Symfony\Component\Console\Output\OutputInterface;
abstract class Command extends Base
{
use AttachDaftFramework;
* @return string|false
protected static function tempnam()
return tempnam(sys_get_temp_dir(), static::class);
}
* @param string|false $tempnam
*
final protected static function tempnamCheck($tempnam, OutputInterface $output)
$tempnam
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
final protected static function tempnamCheck(/** @scrutinizer ignore-unused */ $tempnam, OutputInterface $output)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$tempnam = static::tempnam();
if ( ! is_string($tempnam)) {
is_string($tempnam)
true
$output->writeln('could not get temporary filename!');
return $tempnam;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.