From 899b034013c89f13ecd5d2e444be2ab026326242 Mon Sep 17 00:00:00 2001 From: aymm Date: Mon, 10 May 2021 17:56:02 +0200 Subject: [PATCH] Fixed syntax errors --- .gitignore | 3 ++- src/APnutI.php | 4 ++-- src/Entities/Poll.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index fd28551..81c56a5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ index.php vendor/ log-* logs -config.php \ No newline at end of file +config.php +**/*.DS_Store \ No newline at end of file diff --git a/src/APnutI.php b/src/APnutI.php index 5a7fbd9..2bfbc08 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -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 = [ diff --git a/src/Entities/Poll.php b/src/Entities/Poll.php index 70b9a95..5b865fe 100644 --- a/src/Entities/Poll.php +++ b/src/Entities/Poll.php @@ -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); } /*