for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* QuestionTrait.php - Default methods for confirm question.
*
* @package jaxon-core
* @author Thierry Feuzeu <[email protected]>
* @copyright 2024 Thierry Feuzeu <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
* @link https://github.com/jaxon-php/jaxon-core
*/
namespace Jaxon\App\Dialog\Library;
trait QuestionTrait
{
* Add a confirm question to a function call.
* @param string $sQuestion
* @param array $aArgs
* @return array
public function confirm(string $sQuestion, array $aArgs = []): array
$sQuestion
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function confirm(/** @scrutinizer ignore-unused */ string $sQuestion, array $aArgs = []): array
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$aArgs
public function confirm(string $sQuestion, /** @scrutinizer ignore-unused */ array $aArgs = []): array
return [];
}