Skip to content

Commit 7ef52dd

Browse files
authored
Merge pull request #109 from Eleirbag89/analysis-qMxjPv
Apply fixes from StyleCI
2 parents 4a98375 + 1a3ae0d commit 7ef52dd

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Telegram.php

+10-9
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function forwardMessage(array $content)
256256
* <td>Integer</td>
257257
* <td>Optional</td>
258258
* <td>If the message is a reply, ID of the original message</td>
259-
* </tr>
259+
* </tr>
260260
* <tr>
261261
* <td>disable_notification</td>
262262
* <td>Boolean</td>
@@ -1454,7 +1454,7 @@ public function Text()
14541454
if ($type == self::CHANNEL_POST) {
14551455
return @$this->data['channel_post']['text'];
14561456
}
1457-
if ($type == self::EDITED_MESSAGE) {
1457+
if ($type == self::EDITED_MESSAGE) {
14581458
return @$this->data['edited_message']['text'];
14591459
}
14601460

@@ -1480,9 +1480,10 @@ public function ChatID()
14801480
if ($type == self::CHANNEL_POST) {
14811481
return @$this->data['channel_post']['chat']['id'];
14821482
}
1483-
if ($type == self::EDITED_MESSAGE) {
1483+
if ($type == self::EDITED_MESSAGE) {
14841484
return @$this->data['edited_message']['chat']['id'];
14851485
}
1486+
14861487
return $this->data['message']['chat']['id'];
14871488
}
14881489

@@ -1500,7 +1501,7 @@ public function MessageID()
15001501
if ($type == self::CHANNEL_POST) {
15011502
return @$this->data['channel_post']['message_id'];
15021503
}
1503-
if ($type == self::EDITED_MESSAGE) {
1504+
if ($type == self::EDITED_MESSAGE) {
15041505
return @$this->data['edited_message']['message_id'];
15051506
}
15061507

@@ -1609,7 +1610,7 @@ public function FirstName()
16091610
if ($type == self::CHANNEL_POST) {
16101611
return @$this->data['channel_post']['from']['first_name'];
16111612
}
1612-
if ($type == self::EDITED_MESSAGE) {
1613+
if ($type == self::EDITED_MESSAGE) {
16131614
return @$this->data['edited_message']['from']['first_name'];
16141615
}
16151616

@@ -1626,7 +1627,7 @@ public function LastName()
16261627
if ($type == self::CHANNEL_POST) {
16271628
return @$this->data['channel_post']['from']['last_name'];
16281629
}
1629-
if ($type == self::EDITED_MESSAGE) {
1630+
if ($type == self::EDITED_MESSAGE) {
16301631
return @$this->data['edited_message']['from']['last_name'];
16311632
}
16321633

@@ -1643,7 +1644,7 @@ public function Username()
16431644
if ($type == self::CHANNEL_POST) {
16441645
return @$this->data['channel_post']['from']['username'];
16451646
}
1646-
if ($type == self::EDITED_MESSAGE) {
1647+
if ($type == self::EDITED_MESSAGE) {
16471648
return @$this->data['edited_message']['from']['username'];
16481649
}
16491650

@@ -1678,7 +1679,7 @@ public function UserID()
16781679
if ($type == self::CHANNEL_POST) {
16791680
return $this->data['channel_post']['from']['id'];
16801681
}
1681-
if ($type == self::EDITED_MESSAGE) {
1682+
if ($type == self::EDITED_MESSAGE) {
16821683
return @$this->data['edited_message']['from']['id'];
16831684
}
16841685

@@ -2844,7 +2845,7 @@ private function sendAPIRequest($url, array $content, $post = true)
28442845
}
28452846
curl_close($ch);
28462847
if (class_exists('TelegramErrorLogger')) {
2847-
$loggerArray = ($this->getData() == null) ? [$content] : [$this->getData(), $content];
2848+
$loggerArray = ($this->getData() == null) ? [$content] : [$this->getData(), $content];
28482849
TelegramErrorLogger::log(json_decode($result, true), $loggerArray);
28492850
}
28502851

0 commit comments

Comments
 (0)