Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Anderson committed Mar 15, 2019
1 parent 76110ca commit d213181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/RichMessage/RichMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function doesSupportRichMessage()
}

/**
* Set the fallback text if a request source doesn't support rich messages
* Set the fallback text if a request source doesn't support rich messages.
*/
public function setFallbackText($text)
{
Expand All @@ -56,12 +56,13 @@ public function setFallbackText($text)
/**
* Alias of setFallbackText() to fit more inline with text(), button(), image(), etc.
*/
public function fallbackText($text){
public function fallbackText($text)
{
return $this->setFallbackText($text);
}

/**
* Get the fallback text
* Get the fallback text.
*
* @return string
*/
Expand All @@ -70,7 +71,6 @@ public function getFallbackText()
return $this->fallbackText;
}


protected function setAgentVersion($agentVersion)
{
if (self::API_V1 != $agentVersion && self::API_V2 != $agentVersion) {
Expand Down
2 changes: 1 addition & 1 deletion src/WebhookClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function reply($message)
$this->text = $message;
}
} elseif ($message instanceof RichMessage) {
if(! $this->doesSupportRichMessage()){
if (! $this->doesSupportRichMessage()){
$this->text = $message->getFallbackText();
}

Expand Down

0 comments on commit d213181

Please sign in to comment.