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; return $value;
} }
} }
} }

View File

@ -74,7 +74,9 @@ trait UpdateHandler
$params['offset'] = array_reverse(array_keys((array) $this->updates))[abs($params['offset']) - 1]; $params['offset'] = array_reverse(array_keys((array) $this->updates))[abs($params['offset']) - 1];
} }
$updates = []; $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; $supdates = (array) $this->updates;
ksort($supdates); ksort($supdates);
foreach ($supdates as $key => $value) { foreach ($supdates as $key => $value) {