Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-06-08 12:30:38 +00:00 committed by StyleCI Bot
parent 3cab74f7d5
commit da8c5bd641
2 changed files with 6 additions and 2 deletions

View File

@ -71,11 +71,14 @@ class API extends APIFactory
return $this->storage[$name] = $value; return $this->storage[$name] = $value;
} }
public function __isset($name) {
public function __isset($name)
{
return isset($this->storage[$name]); return isset($this->storage[$name]);
} }
public function __unset($name) { public function __unset($name)
{
unset($this->storage[$name]); unset($this->storage[$name]);
} }

View File

@ -283,6 +283,7 @@ trait UpdateHandler
$this->updates_state['sync_loading'] = true; $this->updates_state['sync_loading'] = true;
$data = $this->method_call('updates.getState', [], ['datacenter' => $this->datacenter->curdc]); $data = $this->method_call('updates.getState', [], ['datacenter' => $this->datacenter->curdc]);
$this->updates_state['sync_loading'] = $last; $this->updates_state['sync_loading'] = $last;
return $data; return $data;
} }