Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv authored and actions-user committed Aug 19, 2024
1 parent cc19794 commit c80e6e0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 25 deletions.
3 changes: 0 additions & 3 deletions src/Actions/MakeQueueTenantAwareAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Spatie\Multitenancy\Actions;

use Illuminate\Mail\SendQueuedMailable;
use Illuminate\Notifications\SendQueuedNotifications;
use Illuminate\Queue\CallQueuedClosure;
use Illuminate\Queue\Events\JobProcessing;
use Illuminate\Queue\Events\JobRetryRequested;
use Illuminate\Support\Arr;
Expand Down
5 changes: 0 additions & 5 deletions tests/Feature/TenantAwareJobs/QueuedBroadcastEventTest.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
<?php

use Illuminate\Auth\Events\Authenticated;
use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Mail;
use Spatie\Multitenancy\Exceptions\CurrentTenantCouldNotBeDeterminedInTenantAwareJob;
use Spatie\Multitenancy\Models\Tenant;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\BroadcastNotTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\BroadcastTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\ListenerNotTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\ListenerTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\MailableNotTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\MailableTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\TestEvent;

beforeEach(function () {
Expand Down
5 changes: 0 additions & 5 deletions tests/Feature/TenantAwareJobs/QueuedListenerTest.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
<?php

use Illuminate\Auth\Events\Authenticated;
use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Mail;
use Spatie\Multitenancy\Exceptions\CurrentTenantCouldNotBeDeterminedInTenantAwareJob;
use Spatie\Multitenancy\Models\Tenant;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\ListenerNotTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\ListenerTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\MailableNotTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\MailableTenantAware;
use Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses\TestEvent;

beforeEach(function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
namespace Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Spatie\Multitenancy\Jobs\NotTenantAware;

class BroadcastNotTenantAware implements ShouldBroadcast, NotTenantAware
{
public function __construct(
public string $message,
) {}
) {
}

public function broadcastOn()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
namespace Spatie\Multitenancy\Tests\Feature\TenantAwareJobs\TestClasses;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Spatie\Multitenancy\Jobs\NotTenantAware;
use Spatie\Multitenancy\Jobs\TenantAware;

class BroadcastTenantAware implements ShouldBroadcast, TenantAware
{
public function __construct(
public string $message,
) {}
) {
}

public function broadcastOn()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use Spatie\Multitenancy\Jobs\NotTenantAware;
use Spatie\Multitenancy\Jobs\TenantAware;

class NotificationNotTenantAware extends Notification implements ShouldQueue, NotTenantAware
{
Expand Down
7 changes: 5 additions & 2 deletions tests/Feature/TenantAwareJobs/TestClasses/TestEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

class TestEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;

public function __construct(
public string $message,
) {}
) {
}
}

0 comments on commit c80e6e0

Please sign in to comment.