mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
TimingsCommand: fix confusing indentation
This commit is contained in:
parent
9abcc99c10
commit
7ce6c8aa13
@ -128,16 +128,19 @@ class TimingsCommand extends VanillaCommand{
|
|||||||
|
|
||||||
public function __construct(CommandSender $sender, string $host, string $agent, array $data){
|
public function __construct(CommandSender $sender, string $host, string $agent, array $data){
|
||||||
parent::__construct([
|
parent::__construct([
|
||||||
["page" => "https://$host?upload=true", "extraOpts" => [
|
[
|
||||||
CURLOPT_HTTPHEADER => [
|
"page" => "https://$host?upload=true",
|
||||||
"User-Agent: $agent",
|
"extraOpts" => [
|
||||||
"Content-Type: application/x-www-form-urlencoded"
|
CURLOPT_HTTPHEADER => [
|
||||||
],
|
"User-Agent: $agent",
|
||||||
CURLOPT_POST => true,
|
"Content-Type: application/x-www-form-urlencoded"
|
||||||
CURLOPT_POSTFIELDS => http_build_query($data),
|
],
|
||||||
CURLOPT_AUTOREFERER => false,
|
CURLOPT_POST => true,
|
||||||
CURLOPT_FOLLOWLOCATION => false
|
CURLOPT_POSTFIELDS => http_build_query($data),
|
||||||
]]
|
CURLOPT_AUTOREFERER => false,
|
||||||
|
CURLOPT_FOLLOWLOCATION => false
|
||||||
|
]
|
||||||
|
]
|
||||||
], $sender);
|
], $sender);
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user