1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 00:34:40 +01:00

Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-05-19 15:37:15 +00:00 committed by StyleCI Bot
parent 1e7c552459
commit 2680b68751
2 changed files with 3 additions and 2 deletions

View File

@ -182,6 +182,5 @@ if (!extension_loaded('pthreads')) {
*/
return $value;
}
}
}

View File

@ -74,7 +74,9 @@ trait UpdateHandler
$params['offset'] = array_reverse(array_keys((array) $this->updates))[abs($params['offset']) - 1];
}
$updates = [];
if (isset($this->updates["\0*\0state"])) unset($this->updates["\0*\0state"]);
if (isset($this->updates["\0*\0state"])) {
unset($this->updates["\0*\0state"]);
}
$supdates = (array) $this->updates;
ksort($supdates);
foreach ($supdates as $key => $value) {