Fixed syntax errors
This commit is contained in:
parent
9edfc37a68
commit
899b034013
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ vendor/
|
|||||||
log-*
|
log-*
|
||||||
logs
|
logs
|
||||||
config.php
|
config.php
|
||||||
|
**/*.DS_Store
|
@ -315,7 +315,7 @@ class APnutI
|
|||||||
|
|
||||||
public function postJson(
|
public function postJson(
|
||||||
string $end_point,
|
string $end_point,
|
||||||
array $parameters,
|
array $parameters
|
||||||
): array {
|
): array {
|
||||||
return $this->post($end_point, $parameters, 'application/json');
|
return $this->post($end_point, $parameters, 'application/json');
|
||||||
}
|
}
|
||||||
@ -730,7 +730,7 @@ class APnutI
|
|||||||
public function createPostWithParameters(
|
public function createPostWithParameters(
|
||||||
string $text,
|
string $text,
|
||||||
array $params = [],
|
array $params = [],
|
||||||
bool $auto_crop = false,
|
bool $auto_crop = false
|
||||||
): Post {
|
): Post {
|
||||||
$text = $auto_crop ? substr($text, 0, $this->getMaxPostLength()) : $text;
|
$text = $auto_crop ? substr($text, 0, $this->getMaxPostLength()) : $text;
|
||||||
$parameters = [
|
$parameters = [
|
||||||
|
@ -151,7 +151,7 @@ class Poll
|
|||||||
|
|
||||||
public function vote(array $options): 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user