@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | return $this->id; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - public function setId(?string $id): void |
|
| 83 | + public function setId(?string $id) : void |
|
| 84 | 84 | { |
| 85 | 85 | $this->id = $id; |
| 86 | 86 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | return $this->login; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - public function setLogin(?string $login): void |
|
| 93 | + public function setLogin(?string $login) : void |
|
| 94 | 94 | { |
| 95 | 95 | $this->login = $login; |
| 96 | 96 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | return $this->name; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - public function setName(?string $name): void |
|
| 103 | + public function setName(?string $name) : void |
|
| 104 | 104 | { |
| 105 | 105 | $this->name = $name; |
| 106 | 106 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | return $this->about; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - public function setAbout(?string $about): void |
|
| 113 | + public function setAbout(?string $about) : void |
|
| 114 | 114 | { |
| 115 | 115 | $this->about = $about; |
| 116 | 116 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | return $this->xmpp; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - public function setXmpp(?string $xmpp): void |
|
| 123 | + public function setXmpp(?string $xmpp) : void |
|
| 124 | 124 | { |
| 125 | 125 | $this->xmpp = $xmpp; |
| 126 | 126 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | return $this->created; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - public function setCreated(?string $created): void |
|
| 133 | + public function setCreated(?string $created) : void |
|
| 134 | 134 | { |
| 135 | 135 | $this->created = $created; |
| 136 | 136 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | return $this->gender; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - public function setGender(?bool $gender): void |
|
| 143 | + public function setGender(?bool $gender) : void |
|
| 144 | 144 | { |
| 145 | 145 | $this->gender = $gender; |
| 146 | 146 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | return $this->denyAnonymous; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - public function setDenyAnonymous(?bool $denyAnonymous): void |
|
| 153 | + public function setDenyAnonymous(?bool $denyAnonymous) : void |
|
| 154 | 154 | { |
| 155 | 155 | $this->denyAnonymous = $denyAnonymous; |
| 156 | 156 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | return $this->private; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - public function setPrivate(?bool $private): void |
|
| 163 | + public function setPrivate(?bool $private) : void |
|
| 164 | 164 | { |
| 165 | 165 | $this->private = $private; |
| 166 | 166 | } |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | return $this->birthDate; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - public function setBirthDate(?string $birthDate): void |
|
| 173 | + public function setBirthDate(?string $birthDate) : void |
|
| 174 | 174 | { |
| 175 | 175 | $this->birthDate = $birthDate; |
| 176 | 176 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | return $this->homepage; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - public function setHomepage(?string $homepage): void |
|
| 183 | + public function setHomepage(?string $homepage) : void |
|
| 184 | 184 | { |
| 185 | 185 | $this->homepage = $homepage; |
| 186 | 186 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | return $this->email; |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - public function setEmail(?string $email): void |
|
| 193 | + public function setEmail(?string $email) : void |
|
| 194 | 194 | { |
| 195 | 195 | $this->email = $email; |
| 196 | 196 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | return $this->location; |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | - public function setLocation(?string $location): void |
|
| 203 | + public function setLocation(?string $location) : void |
|
| 204 | 204 | { |
| 205 | 205 | $this->location = $location; |
| 206 | 206 | } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | return $this->error; |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | - public function setError(?string $error): void |
|
| 213 | + public function setError(?string $error) : void |
|
| 214 | 214 | { |
| 215 | 215 | $this->error = $error; |
| 216 | 216 | } |
@@ -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; |