parent
777e928cea
commit
db01d75fac
@ -103,13 +103,7 @@ class Hixie76 implements VersionInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function generateKeyNumber($key) {
|
public function generateKeyNumber($key) {
|
||||||
if (0 === substr_count($key, ' ')) {
|
return preg_replace('[\D]', '', $key) / substr_count($key, ' ');
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$int = (int)preg_replace('[\D]', '', $key) / substr_count($key, ' ');
|
|
||||||
|
|
||||||
return (is_int($int)) ? $int : '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function sign($key1, $key2, $code) {
|
protected function sign($key1, $key2, $code) {
|
||||||
|
Loading…
Reference in New Issue
Block a user