From 3acbc1982f12e8420a1cf13588bc2b69f70df7ec Mon Sep 17 00:00:00 2001 From: Derrick Obedgiu Date: Wed, 30 Oct 2024 19:36:20 +0300 Subject: [PATCH] Fixed code style issues --- src/Message/ButtonReply/DocumentHeader.php | 2 +- src/Message/ButtonReply/Header.php | 2 +- src/Message/ButtonReply/ImageHeader.php | 2 +- src/Message/ButtonReply/TextHeader.php | 2 +- src/Message/ButtonReply/VideoHeader.php | 2 +- src/Message/ButtonReplyMessage.php | 2 +- tests/Integration/WhatsAppCloudApiTest.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Message/ButtonReply/DocumentHeader.php b/src/Message/ButtonReply/DocumentHeader.php index 1f50cd8..6daeae2 100644 --- a/src/Message/ButtonReply/DocumentHeader.php +++ b/src/Message/ButtonReply/DocumentHeader.php @@ -26,4 +26,4 @@ public function getBody(): array ], ]; } -} \ No newline at end of file +} diff --git a/src/Message/ButtonReply/Header.php b/src/Message/ButtonReply/Header.php index 1be938c..1807217 100644 --- a/src/Message/ButtonReply/Header.php +++ b/src/Message/ButtonReply/Header.php @@ -7,4 +7,4 @@ abstract class Header protected string $type; abstract public function getBody(): array; -} \ No newline at end of file +} diff --git a/src/Message/ButtonReply/ImageHeader.php b/src/Message/ButtonReply/ImageHeader.php index ec2b25f..641adc4 100644 --- a/src/Message/ButtonReply/ImageHeader.php +++ b/src/Message/ButtonReply/ImageHeader.php @@ -23,4 +23,4 @@ public function getBody(): array ], ]; } -} \ No newline at end of file +} diff --git a/src/Message/ButtonReply/TextHeader.php b/src/Message/ButtonReply/TextHeader.php index 1a3ba8a..a1d3942 100644 --- a/src/Message/ButtonReply/TextHeader.php +++ b/src/Message/ButtonReply/TextHeader.php @@ -19,4 +19,4 @@ public function getBody(): array 'text' => $this->text, ]; } -} \ No newline at end of file +} diff --git a/src/Message/ButtonReply/VideoHeader.php b/src/Message/ButtonReply/VideoHeader.php index 9183c3a..e383911 100644 --- a/src/Message/ButtonReply/VideoHeader.php +++ b/src/Message/ButtonReply/VideoHeader.php @@ -23,4 +23,4 @@ public function getBody(): array ], ]; } -} \ No newline at end of file +} diff --git a/src/Message/ButtonReplyMessage.php b/src/Message/ButtonReplyMessage.php index 8933590..577c2fd 100644 --- a/src/Message/ButtonReplyMessage.php +++ b/src/Message/ButtonReplyMessage.php @@ -17,7 +17,7 @@ final class ButtonReplyMessage extends Message private ButtonAction $action; - public function __construct(string $to, string $body, ButtonAction $action, ?Header $header = null, ?string $footer = null, ?string $reply_to = null) + public function __construct(string $to, string $body, ButtonAction $action, ?Header $header = null, ?string $footer = null, ?string $reply_to = null) { $this->body = $body; $this->action = $action; diff --git a/tests/Integration/WhatsAppCloudApiTest.php b/tests/Integration/WhatsAppCloudApiTest.php index bc4fb4c..3ef70b6 100644 --- a/tests/Integration/WhatsAppCloudApiTest.php +++ b/tests/Integration/WhatsAppCloudApiTest.php @@ -512,7 +512,7 @@ public function test_send_reply_buttons_with_document_link_header() $buttonAction = new ButtonAction($buttonRows); $link_id = new LinkID('https://netflie.es/wp-content/uploads/2022/05/image.png'); - $header = new DocumentHeader($link_id,'whatsapp-cloud-api.png'); + $header = new DocumentHeader($link_id, 'whatsapp-cloud-api.png'); $footer = 'This is an optional footer'; $response = $this->whatsapp_app_cloud_api->sendButton(