for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace yrc\actions;
use yrc\rest\Action as RestAction;
use yrc\models\redis\EncryptionKey;
use Yii;
class OneTimeKeyAction extends RestAction
{
/**
* Generates a one time key pair to authenticate further authentication sessions
* @return array
*/
public function get($params)
$params
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function get(/** @scrutinizer ignore-unused */ $params)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// Generate a one time key pair
$model = EncryptionKey::generate(true);
// Return the public keys, and a signature of the public key
return [
'public' => \base64_encode($model->getBoxPublicKey()),
'hash' => $model->hash
];
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.