Applied fixes from StyleCI
This commit is contained in:
parent
bf93251ee6
commit
8ddc8237e5
@ -133,7 +133,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||
$packet_length = $this->struct->unpack('<I', $packet_length_data)[0];
|
||||
$packet = $this->sock->read($packet_length - 4);
|
||||
if ($packet_length == 4) {
|
||||
throw new Exception("Server response error: " . $this->struct->unpack('<I', $packet)[0]);
|
||||
throw new Exception('Server response error: '.$this->struct->unpack('<I', $packet)[0]);
|
||||
}
|
||||
if (!($this->newcrc32($packet_length_data.substr($packet, 0, -4)) == $this->struct->unpack('<I', substr($packet, -4))[0])) {
|
||||
throw new Exception('CRC32 was not correct!');
|
||||
|
@ -70,6 +70,7 @@ class TL
|
||||
$bytes_io .= $this->serialize_param($arg['type'], $kwargs[$argcount++]);
|
||||
}
|
||||
}
|
||||
|
||||
return $bytes_io;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user