Fixed syntax errors

main
aymm 2021-05-10 17:56:02 +02:00
parent 9edfc37a68
commit 899b034013
Signed by: phlaym
GPG Key ID: A06651BAB6777237
3 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ index.php
vendor/
log-*
logs
config.php
config.php
**/*.DS_Store

View File

@ -315,7 +315,7 @@ class APnutI
public function postJson(
string $end_point,
array $parameters,
array $parameters
): array {
return $this->post($end_point, $parameters, 'application/json');
}
@ -730,7 +730,7 @@ class APnutI
public function createPostWithParameters(
string $text,
array $params = [],
bool $auto_crop = false,
bool $auto_crop = false
): Post {
$text = $auto_crop ? substr($text, 0, $this->getMaxPostLength()) : $text;
$parameters = [

View File

@ -151,7 +151,7 @@ class Poll
public function vote(array $options): Poll
{
return $this-api->voteInPoll($this->id, $options, $this->token);
return $this->api->voteInPoll($this->id, $options, $this->token);
}
/*