for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Yubikey\Response;
use Yubikey\ResponseCollection;
use Yubikey\Validate;
class MockYubiValidate extends Validate
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function check($otp, $multi = false)
$nonce = $this->generateNonce();
$result = new Response(array(
'h' => '',
'otp' => $otp,
'status' => 'OK',
'nonce' => $nonce,
'inputNonce' => $nonce,
'inputOtp' => $otp,
'host' => 'api.yubico.com',
'sl' => 25,
'timestamp' => time()
));
return new ResponseCollection(array($result));
}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.