Applied fixes from StyleCI

This commit is contained in:
Daniil Gentili 2016-08-08 13:08:42 -04:00 committed by StyleCI Bot
parent bf93251ee6
commit 8ddc8237e5
2 changed files with 3 additions and 2 deletions

View File

@ -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!');

View File

@ -70,6 +70,7 @@ class TL
$bytes_io .= $this->serialize_param($arg['type'], $kwargs[$argcount++]);
}
}
return $bytes_io;
}