Nu-coder> нужен фикс $this
Issue #51
new
{
->keyFile = $keyFile;
->encodeKey = $encode_key;
}
public function checkKey()
{
$code = readKey();
if ($code != KC_OK) {
error($code);
}
$code = checkControl();
if ($code != KC_OK) {
error($code);
}
$code = checkLimits();
if ($code != KC_OK) {
error($code);
}
return ->key;
}
надо
public function __construct($keyFile, $encode_key)
{
$this->keyFile = $keyFile;
$this->encodeKey = $encode_key;
}
public function checkKey()
{
$code = $this->readKey();
if ($code != KC_OK) {
$this->error($code);
}
$code = $this->checkControl();
if ($code != KC_OK) {
$this->error($code);
}
$code = $this->checkLimits();
if ($code != KC_OK) {
$this->error($code);
}
return $this->key;
}
Comments (1)
-
reporter - Log in to comment