for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace jumper423\decaptcha\services;
/**
* Class Socialink.
*/
class Socialink extends RuCaptcha
{
protected $host = 'socialink.ru';
public function init()
parent::init();
unset(
$this->paramsNames[self::ACTION_FIELD_QUESTION],
$this->paramsNames[self::ACTION_FIELD_TEXTINSTRUCTIONS],
$this->paramsNames[self::ACTION_FIELD_PINGBACK],
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_QUESTION],
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_TEXTINSTRUCTIONS],
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_PINGBACK]
);
$this->paramsNames[self::ACTION_FIELD_IS_RUSSIAN] = 'is_russian';
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_IS_RUSSIAN] = [
static::PARAM_SLUG_DEFAULT => 0,
static::PARAM_SLUG_TYPE => static::PARAM_FIELD_TYPE_INTEGER,
static::PARAM_SLUG_ENUM => [
0,
1,
],
];
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_NUMERIC][static::PARAM_SLUG_ENUM] = [
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_LANGUAGE][static::PARAM_SLUG_ENUM] = [
2,
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_SOFT_ID][self::PARAM_SLUG_DEFAULT] = 0;
}