Applied fixes from StyleCI
This commit is contained in:
parent
ad1552df63
commit
a505017c45
@ -285,14 +285,14 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||
// req_DH_params
|
||||
$this->log->log('Starting Diffie Hellman key exchange');
|
||||
|
||||
$server_dh_params = $this->method_call('req_DH_params',
|
||||
$server_dh_params = $this->method_call('req_DH_params',
|
||||
[
|
||||
'nonce' => $nonce,
|
||||
'server_nonce' => $server_nonce,
|
||||
'p' => $p_bytes,
|
||||
'q' => $q_bytes,
|
||||
'nonce' => $nonce,
|
||||
'server_nonce' => $server_nonce,
|
||||
'p' => $p_bytes,
|
||||
'q' => $q_bytes,
|
||||
'public_key_fingerprint' => $public_key_fingerprint,
|
||||
'encrypted_data' => $encrypted_data
|
||||
'encrypted_data' => $encrypted_data,
|
||||
]
|
||||
);
|
||||
|
||||
|
@ -98,6 +98,7 @@ class TL
|
||||
if (!is_numeric($value)) {
|
||||
throw new Exception("serialize_param: given value isn't numeric");
|
||||
}
|
||||
|
||||
return \danog\PHP\Struct::pack('<q', $value);
|
||||
break;
|
||||
case 'int128':
|
||||
@ -105,6 +106,7 @@ class TL
|
||||
if (!is_string($value)) {
|
||||
throw new Exception("serialize_param: given value isn't a string");
|
||||
}
|
||||
|
||||
return $value;
|
||||
break;
|
||||
case 'string':
|
||||
@ -121,6 +123,7 @@ class TL
|
||||
$concat .= $value;
|
||||
$concat .= pack('@'.\danog\MadelineProto\Tools::posmod(-$l, 4));
|
||||
}
|
||||
|
||||
return $concat;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user