Apply fixes from StyleCI
This commit is contained in:
parent
3a5e5a9c43
commit
d2ce6c0684
@ -80,7 +80,12 @@ class Lua
|
|||||||
if (is_callable($cb)) {
|
if (is_callable($cb)) {
|
||||||
$cb($result, $cb_extra);
|
$cb($result, $cb_extra);
|
||||||
}
|
}
|
||||||
array_walk_recursive($result, function (&$value, $key) { if ($value instanceof \danog\MadelineProto\TL\Types\Button) $value = $value->jsonSerialize(); });
|
array_walk_recursive($result, function (&$value, $key) {
|
||||||
|
if ($value instanceof \danog\MadelineProto\TL\Types\Button) {
|
||||||
|
$value = $value->jsonSerialize();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,7 +270,9 @@ class MTProto extends \Volatile
|
|||||||
foreach ($this->calls as $id => $controller) {
|
foreach ($this->calls as $id => $controller) {
|
||||||
if (is_array($controller) || $controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) {
|
if (is_array($controller) || $controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) {
|
||||||
unset($this->calls[$id]);
|
unset($this->calls[$id]);
|
||||||
} else var_dump($controller->getCallState());
|
} else {
|
||||||
|
var_dump($controller->getCallState());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Detect ipv6
|
// Detect ipv6
|
||||||
$this->ipv6 = (bool) strlen(@file_get_contents('http://ipv6.test-ipv6.com/', false, stream_context_create(['http' => ['timeout' => 1]]))) > 0;
|
$this->ipv6 = (bool) strlen(@file_get_contents('http://ipv6.test-ipv6.com/', false, stream_context_create(['http' => ['timeout' => 1]]))) > 0;
|
||||||
|
@ -48,6 +48,7 @@ trait AuthKeyHandler
|
|||||||
|
|
||||||
$this->handle_pending_updates();
|
$this->handle_pending_updates();
|
||||||
$this->get_updates_difference();
|
$this->get_updates_difference();
|
||||||
|
|
||||||
return $controller;
|
return $controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +109,7 @@ trait AuthKeyHandler
|
|||||||
'enable_AEC' => true,
|
'enable_AEC' => true,
|
||||||
'enable_AGC' => true,
|
'enable_AGC' => true,
|
||||||
'log_file_path' => $this->settings['calls']['log_file_path'],
|
'log_file_path' => $this->settings['calls']['log_file_path'],
|
||||||
'stats_dump_file_path' => $this->settings['calls']['stats_dump_file_path']
|
'stats_dump_file_path' => $this->settings['calls']['stats_dump_file_path'],
|
||||||
],
|
],
|
||||||
'auth_key' => $key['auth_key'],
|
'auth_key' => $key['auth_key'],
|
||||||
'network_type' => $this->settings['calls']['network_type'],
|
'network_type' => $this->settings['calls']['network_type'],
|
||||||
@ -191,6 +192,7 @@ trait AuthKeyHandler
|
|||||||
unset($this->calls[$id]);
|
unset($this->calls[$id]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->calls[$call];
|
return $this->calls[$call];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user