From 9abcc99c105f9f9cbab6daf9f9ded6786158cef6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 30 Jan 2020 20:46:25 +0000 Subject: [PATCH 1/2] Command: fixed spacing of phpdoc on execute() --- src/pocketmine/command/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/command/Command.php b/src/pocketmine/command/Command.php index 59c51c036..3c9c5f7a2 100644 --- a/src/pocketmine/command/Command.php +++ b/src/pocketmine/command/Command.php @@ -83,7 +83,7 @@ abstract class Command{ } /** - * @param string[] $args + * @param string[] $args * * @return mixed * @throws CommandException From 7ce6c8aa13bd1e8eb5aa3fe267a0116ab43e9313 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 30 Jan 2020 20:47:33 +0000 Subject: [PATCH 2/2] TimingsCommand: fix confusing indentation --- .../command/defaults/TimingsCommand.php | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/pocketmine/command/defaults/TimingsCommand.php b/src/pocketmine/command/defaults/TimingsCommand.php index 4251ac33c..3fe01331e 100644 --- a/src/pocketmine/command/defaults/TimingsCommand.php +++ b/src/pocketmine/command/defaults/TimingsCommand.php @@ -128,16 +128,19 @@ class TimingsCommand extends VanillaCommand{ public function __construct(CommandSender $sender, string $host, string $agent, array $data){ parent::__construct([ - ["page" => "https://$host?upload=true", "extraOpts" => [ - CURLOPT_HTTPHEADER => [ - "User-Agent: $agent", - "Content-Type: application/x-www-form-urlencoded" - ], - CURLOPT_POST => true, - CURLOPT_POSTFIELDS => http_build_query($data), - CURLOPT_AUTOREFERER => false, - CURLOPT_FOLLOWLOCATION => false - ]] + [ + "page" => "https://$host?upload=true", + "extraOpts" => [ + CURLOPT_HTTPHEADER => [ + "User-Agent: $agent", + "Content-Type: application/x-www-form-urlencoded" + ], + CURLOPT_POST => true, + CURLOPT_POSTFIELDS => http_build_query($data), + CURLOPT_AUTOREFERER => false, + CURLOPT_FOLLOWLOCATION => false + ] + ] ], $sender); $this->host = $host; }