From 3f06c792844664a113908908f3638a55b1467929 Mon Sep 17 00:00:00 2001 From: Milwad Date: Thu, 18 Jul 2024 13:29:52 +0330 Subject: [PATCH] pint --- src/Events/LaravelCartDecreaseQuantityEvent.php | 4 ---- src/Events/LaravelCartEmptyEvent.php | 4 ---- src/Events/LaravelCartIncreaseQuantityEvent.php | 4 ---- src/Events/LaravelCartRemoveItemEvent.php | 4 ---- src/Events/LaravelCartStoreItemEvent.php | 4 ---- src/Models/Cart.php | 2 +- tests/Feature/Models/CartUpdateQuantityTest.php | 1 - 7 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/Events/LaravelCartDecreaseQuantityEvent.php b/src/Events/LaravelCartDecreaseQuantityEvent.php index 8394136..0a585b7 100644 --- a/src/Events/LaravelCartDecreaseQuantityEvent.php +++ b/src/Events/LaravelCartDecreaseQuantityEvent.php @@ -2,11 +2,7 @@ namespace Binafy\LaravelCart\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; diff --git a/src/Events/LaravelCartEmptyEvent.php b/src/Events/LaravelCartEmptyEvent.php index a6e50f0..52ad63a 100644 --- a/src/Events/LaravelCartEmptyEvent.php +++ b/src/Events/LaravelCartEmptyEvent.php @@ -2,11 +2,7 @@ namespace Binafy\LaravelCart\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; diff --git a/src/Events/LaravelCartIncreaseQuantityEvent.php b/src/Events/LaravelCartIncreaseQuantityEvent.php index 433ca74..3088eac 100644 --- a/src/Events/LaravelCartIncreaseQuantityEvent.php +++ b/src/Events/LaravelCartIncreaseQuantityEvent.php @@ -2,11 +2,7 @@ namespace Binafy\LaravelCart\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; diff --git a/src/Events/LaravelCartRemoveItemEvent.php b/src/Events/LaravelCartRemoveItemEvent.php index 3a31f20..97d00e9 100644 --- a/src/Events/LaravelCartRemoveItemEvent.php +++ b/src/Events/LaravelCartRemoveItemEvent.php @@ -2,11 +2,7 @@ namespace Binafy\LaravelCart\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; diff --git a/src/Events/LaravelCartStoreItemEvent.php b/src/Events/LaravelCartStoreItemEvent.php index f2198fb..fd344f3 100644 --- a/src/Events/LaravelCartStoreItemEvent.php +++ b/src/Events/LaravelCartStoreItemEvent.php @@ -2,11 +2,7 @@ namespace Binafy\LaravelCart\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; diff --git a/src/Models/Cart.php b/src/Models/Cart.php index 513901c..8ee6a0d 100644 --- a/src/Models/Cart.php +++ b/src/Models/Cart.php @@ -2,12 +2,12 @@ namespace Binafy\LaravelCart\Models; -use Binafy\LaravelCart\Events\LaravelCartStoreItemEvent; use Binafy\LaravelCart\Cartable; use Binafy\LaravelCart\Events\LaravelCartDecreaseQuantityEvent; use Binafy\LaravelCart\Events\LaravelCartEmptyEvent; use Binafy\LaravelCart\Events\LaravelCartIncreaseQuantityEvent; use Binafy\LaravelCart\Events\LaravelCartRemoveItemEvent; +use Binafy\LaravelCart\Events\LaravelCartStoreItemEvent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; diff --git a/tests/Feature/Models/CartUpdateQuantityTest.php b/tests/Feature/Models/CartUpdateQuantityTest.php index f18912b..70de3cc 100644 --- a/tests/Feature/Models/CartUpdateQuantityTest.php +++ b/tests/Feature/Models/CartUpdateQuantityTest.php @@ -2,7 +2,6 @@ use Binafy\LaravelCart\Events\LaravelCartDecreaseQuantityEvent; use Binafy\LaravelCart\Events\LaravelCartIncreaseQuantityEvent; -use Binafy\LaravelCart\Events\LaravelCartStoreItemEvent; use Binafy\LaravelCart\Models\Cart; use Binafy\LaravelCart\Models\CartItem; use Illuminate\Foundation\Testing\RefreshDatabase;