diff --git a/src/command/Command.php b/src/command/Command.php index 3bb291b1a..08cc19d9b 100644 --- a/src/command/Command.php +++ b/src/command/Command.php @@ -83,7 +83,7 @@ abstract class Command{ } /** - * @param string[] $args + * @param string[] $args * * @return mixed * @throws CommandException diff --git a/src/command/defaults/TimingsCommand.php b/src/command/defaults/TimingsCommand.php index a926d554a..d808ae73c 100644 --- a/src/command/defaults/TimingsCommand.php +++ b/src/command/defaults/TimingsCommand.php @@ -129,16 +129,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 + ] + ] ]); $this->host = $host; $this->storeLocal(self::TLS_KEY_SENDER, $sender);