Skip to content

Commit

Permalink
Merge pull request #272 from Eleirbag89/analysis-Rv2mv7
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Eleirbag89 committed Apr 13, 2022
2 parents 958885a + 899bdb6 commit 644042f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Telegram.php
Expand Up @@ -1906,7 +1906,7 @@ public function Callback_ChatID()
{
return $this->data['callback_query']['message']['chat']['id'];
}

/// Get the Get the from_id of the current callback

/**
Expand All @@ -1917,7 +1917,6 @@ public function Callback_FromID()
return $this->data['callback_query']['from']['id'];
}


/// Get the date of the current message

/**
Expand Down Expand Up @@ -2042,19 +2041,20 @@ public function messageFromGroup()

return true;
}

/// Get the contact phone number
/**
* \return a String of the contact phone number.
*/
public function getContactPhoneNumber()
{
public function getContactPhoneNumber()
{
if ($this->getUpdateType() == self::CONTACT) {
return $this->data["message"]["contact"]["phone_number"];
return $this->data['message']['contact']['phone_number'];
}

return '';
}

/// Get the title of the group chat

/**
Expand Down

0 comments on commit 644042f

Please sign in to comment.