diff --git a/src/Action/Responses/BasicCard.php b/src/Action/Responses/BasicCard.php index f281e59..af3e51e 100644 --- a/src/Action/Responses/BasicCard.php +++ b/src/Action/Responses/BasicCard.php @@ -87,7 +87,7 @@ public function button($buttonText, $buttonUrl) { $this->buttons[] = [ 'buttonText' => $buttonText, - 'buttonUrl' => $buttonUrl + 'buttonUrl' => $buttonUrl, ]; return $this; @@ -119,7 +119,7 @@ public function renderRichResponseItem() } if ($this->buttons) { - foreach ($this->buttons as $button){ + foreach ($this->buttons as $button) { $basicCard['buttons'][] = [ 'title' => $button['buttonText'], diff --git a/src/RichMessage/Card.php b/src/RichMessage/Card.php index f1fcc5c..17e70f3 100644 --- a/src/RichMessage/Card.php +++ b/src/RichMessage/Card.php @@ -78,7 +78,7 @@ public function button($buttonText, $buttonUrl) { $this->buttons[] = [ 'buttonText' => $buttonText, - 'buttonUrl' => $buttonUrl + 'buttonUrl' => $buttonUrl, ]; return $this; @@ -115,7 +115,7 @@ protected function renderV1() if ($this->buttons) { $out['buttons'] = []; - foreach ($this->buttons as $button){ + foreach ($this->buttons as $button) { $out['buttons'][] = [ 'title' => $button['buttonText'], @@ -147,7 +147,7 @@ protected function renderV1() if ($this->buttons) { $out['buttons'] = []; - foreach ($this->buttons as $button){ + foreach ($this->buttons as $button) { $out['buttons'][] = [ 'text' => $button['buttonText'], @@ -190,7 +190,7 @@ protected function renderV2() if ($this->buttons) { $out['basicCard']['buttons'] = []; - foreach ($this->buttons as $button){ + foreach ($this->buttons as $button) { $out['basicCard']['buttons'][] = [ 'title' => $button['buttonText'], @@ -220,7 +220,7 @@ protected function renderV2() if ($this->buttons) { $out['card']['buttons'] = []; - foreach ($this->buttons as $button){ + foreach ($this->buttons as $button) { $out['card']['buttons'][] = [ 'text' => $button['buttonText'],