@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * @return MetaPost[]|null |
| 19 | 19 | */ |
| 20 | - public function getPosts(): ?array |
|
| 20 | + public function getPosts(): ? array |
|
| 21 | 21 | { |
| 22 | 22 | return $this->posts; |
| 23 | 23 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @param MetaPost[]|null $posts |
| 27 | 27 | */ |
| 28 | - public function setPosts(?array $posts): void |
|
| 28 | + public function setPosts(? array $posts) : void |
|
| 29 | 29 | { |
| 30 | 30 | $this->posts = $posts; |
| 31 | 31 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | return $this->hasNext; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - public function setHasNext(?bool $hasNext): void |
|
| 38 | + public function setHasNext(?bool $hasNext) : void |
|
| 39 | 39 | { |
| 40 | 40 | $this->hasNext = $hasNext; |
| 41 | 41 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | return $this->id; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - public function setId(?string $id): void |
|
| 53 | + public function setId(?string $id) : void |
|
| 54 | 54 | { |
| 55 | 55 | $this->id = $id; |
| 56 | 56 | } |
@@ -58,12 +58,12 @@ discard block |
||
| 58 | 58 | /** |
| 59 | 59 | * @return string[]|null |
| 60 | 60 | */ |
| 61 | - public function getTags(): ?array |
|
| 61 | + public function getTags(): ? array |
|
| 62 | 62 | { |
| 63 | 63 | return $this->tags; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - public function setTags(?array $tags): void |
|
| 66 | + public function setTags(? array $tags) : void |
|
| 67 | 67 | { |
| 68 | 68 | $this->tags = $tags; |
| 69 | 69 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * @return string[]|null |
| 73 | 73 | */ |
| 74 | - public function getFiles(): ?array |
|
| 74 | + public function getFiles(): ? array |
|
| 75 | 75 | { |
| 76 | 76 | return $this->files; |
| 77 | 77 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | /** |
| 80 | 80 | * @param string[]|null $files |
| 81 | 81 | */ |
| 82 | - public function setFiles(?array $files): void |
|
| 82 | + public function setFiles(? array $files) : void |
|
| 83 | 83 | { |
| 84 | 84 | $this->files = $files; |
| 85 | 85 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | return $this->author; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - public function setAuthor(?User $author): void |
|
| 92 | + public function setAuthor(?User $author) : void |
|
| 93 | 93 | { |
| 94 | 94 | $this->author = $author; |
| 95 | 95 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | return $this->text; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - public function setText(?string $text): void |
|
| 102 | + public function setText(?string $text) : void |
|
| 103 | 103 | { |
| 104 | 104 | $this->text = $text; |
| 105 | 105 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | return $this->created; |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | - public function setCreated(?string $created): void |
|
| 112 | + public function setCreated(?string $created) : void |
|
| 113 | 113 | { |
| 114 | 114 | $this->created = $created; |
| 115 | 115 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | return $this->type; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - public function setType(?string $type): void |
|
| 122 | + public function setType(?string $type) : void |
|
| 123 | 123 | { |
| 124 | 124 | $this->type = $type; |
| 125 | 125 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | return $this->private; |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - public function setPrivate(?bool $private): void |
|
| 137 | + public function setPrivate(?bool $private) : void |
|
| 138 | 138 | { |
| 139 | 139 | $this->private = $private; |
| 140 | 140 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | ): bool |
| 100 | 100 | { |
| 101 | 101 | $sendMessage = new SendMessage(); |
| 102 | - $sendMessage->chat_id = (string)$chatId; |
|
| 102 | + $sendMessage->chat_id = (string) $chatId; |
|
| 103 | 103 | $sendMessage->text = $text; |
| 104 | 104 | $sendMessage->parse_mode = $parseMode; |
| 105 | 105 | $sendMessage->disable_web_page_preview = $disableWebPreview; |