Skip to content

Commit

Permalink
Cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiergummi committed Jul 13, 2022
1 parent 7e91653 commit 18d6c21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Channels/MailgunTemplatesChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function send(
)
);

/** @noinspection PhpMethodParametersCountMismatchInspection */
$message = $notification->toMailgun($notifiable);
assert(
$message instanceof MailgunTemplatedMessage,
Expand Down
9 changes: 3 additions & 6 deletions src/MailgunTemplatesChannelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@

use Illuminate\Container\Container;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Notifications\ChannelManager;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\ServiceProvider;
use LogicException;
use Mailgun\Mailgun;
use Matchory\MailgunTemplatedMessages\Channels\MailgunTemplatesChannel;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;

use function assert;
use function is_array;
Expand All @@ -38,9 +37,8 @@ class MailgunTemplatesChannelServiceProvider extends ServiceProvider
/**
* Register the application services.
*
* @throws ContainerExceptionInterface
* @throws BindingResolutionException
* @throws LogicException
* @throws NotFoundExceptionInterface
*/
public function register(): void
{
Expand All @@ -50,8 +48,7 @@ public function register(): void
}

/**
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws BindingResolutionException
*/
private function extendNotificationChannels(): void
{
Expand Down

0 comments on commit 18d6c21

Please sign in to comment.