Applied fixes from StyleCI
This commit is contained in:
parent
ad1552df63
commit
a505017c45
@ -292,7 +292,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||
'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