Skip to content

Commit

Permalink
pass ci codestyle, remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas Schleijpen committed Mar 31, 2024
1 parent 0ceeeb9 commit fc3e02f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/WhatsAppChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function send($notifiable, Notification $notification): ?Response
$message->getMessage()
);
}

return $this->whatsapp->sendTemplate(
$message->recipient(),
$message->configuredName(),
Expand Down
1 change: 0 additions & 1 deletion src/WhatsAppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Support\ServiceProvider;
use Netflie\WhatsAppCloudApi\WhatsAppCloudApi;
use Netflie\WhatsAppCloudApi\WebHook;

class WhatsAppServiceProvider extends ServiceProvider
{
Expand Down
5 changes: 0 additions & 5 deletions src/WhatsAppTextMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

namespace NotificationChannels\WhatsApp;

use Netflie\WhatsAppCloudApi\Message\Template\Component as CloudApiComponent;
use NotificationChannels\WhatsApp\Component\Button;
use NotificationChannels\WhatsApp\Component\Component;

class WhatsAppTextMessage
{
/**
Expand All @@ -23,7 +19,6 @@ class WhatsAppTextMessage
*/
protected static string $type = 'text';


protected function __construct($to = '', $message = '')
{
$this->to = $to;
Expand Down
2 changes: 1 addition & 1 deletion tests/WhatsAppTextMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public function it_can_return_the_message_type()

$this->assertEquals('text', $message->type());
}
}
}

0 comments on commit fc3e02f

Please sign in to comment.