From b7381573e8ab4062e477d4c8f840a7e0665d353d Mon Sep 17 00:00:00 2001 From: Pixel Tech Date: Sun, 8 Sep 2024 02:21:01 +0000 Subject: [PATCH] Apply Laravel Pint Signed-off-by: Pixel Tech --- src/CartCollection.php | 4 +--- src/CartConditionCollection.php | 4 +--- src/Exceptions/InvalidConditionException.php | 4 +--- src/Exceptions/InvalidItemException.php | 4 +--- src/Exceptions/UnknownModelException.php | 4 +--- src/Validators/CartConditionValidator.php | 4 +--- src/Validators/CartItemValidator.php | 4 +--- tests/Unit/CartTest.php | 2 +- tests/Unit/CartTestEventsTest.php | 15 +++++++-------- tests/Unit/CartTestMultipleInstancesTest.php | 4 ++-- tests/Unit/ItemTest.php | 2 +- tests/Unit/ItemTestOtherFormatTest.php | 2 +- 12 files changed, 19 insertions(+), 34 deletions(-) diff --git a/src/CartCollection.php b/src/CartCollection.php index 61b4a2d..18ee559 100644 --- a/src/CartCollection.php +++ b/src/CartCollection.php @@ -4,6 +4,4 @@ use Illuminate\Support\Collection; -class CartCollection extends Collection -{ -} +class CartCollection extends Collection {} diff --git a/src/CartConditionCollection.php b/src/CartConditionCollection.php index 3ab94b5..23c24c0 100644 --- a/src/CartConditionCollection.php +++ b/src/CartConditionCollection.php @@ -4,6 +4,4 @@ use Illuminate\Support\Collection; -class CartConditionCollection extends Collection -{ -} +class CartConditionCollection extends Collection {} diff --git a/src/Exceptions/InvalidConditionException.php b/src/Exceptions/InvalidConditionException.php index 1fcfd76..d237983 100644 --- a/src/Exceptions/InvalidConditionException.php +++ b/src/Exceptions/InvalidConditionException.php @@ -2,6 +2,4 @@ namespace Wearepixel\Cart\Exceptions; -class InvalidConditionException extends \Exception -{ -} +class InvalidConditionException extends \Exception {} diff --git a/src/Exceptions/InvalidItemException.php b/src/Exceptions/InvalidItemException.php index 38a316c..3c7134a 100644 --- a/src/Exceptions/InvalidItemException.php +++ b/src/Exceptions/InvalidItemException.php @@ -2,6 +2,4 @@ namespace Wearepixel\Cart\Exceptions; -class InvalidItemException extends \Exception -{ -} +class InvalidItemException extends \Exception {} diff --git a/src/Exceptions/UnknownModelException.php b/src/Exceptions/UnknownModelException.php index dda5213..140f39b 100644 --- a/src/Exceptions/UnknownModelException.php +++ b/src/Exceptions/UnknownModelException.php @@ -2,6 +2,4 @@ namespace Wearepixel\Cart\Exceptions; -class UnknownModelException extends \Exception -{ -} +class UnknownModelException extends \Exception {} diff --git a/src/Validators/CartConditionValidator.php b/src/Validators/CartConditionValidator.php index 9522126..8cb4b8d 100644 --- a/src/Validators/CartConditionValidator.php +++ b/src/Validators/CartConditionValidator.php @@ -2,6 +2,4 @@ namespace Wearepixel\Cart\Validators; -class CartConditionValidator extends Validator -{ -} +class CartConditionValidator extends Validator {} diff --git a/src/Validators/CartItemValidator.php b/src/Validators/CartItemValidator.php index 4952185..d593612 100644 --- a/src/Validators/CartItemValidator.php +++ b/src/Validators/CartItemValidator.php @@ -2,6 +2,4 @@ namespace Wearepixel\Cart\Validators; -class CartItemValidator extends Validator -{ -} +class CartItemValidator extends Validator {} diff --git a/tests/Unit/CartTest.php b/tests/Unit/CartTest.php index ecbf8ef..73cb23e 100644 --- a/tests/Unit/CartTest.php +++ b/tests/Unit/CartTest.php @@ -13,7 +13,7 @@ $events, 'shopping', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); }); diff --git a/tests/Unit/CartTestEventsTest.php b/tests/Unit/CartTestEventsTest.php index 1bf77c7..d098ea0 100644 --- a/tests/Unit/CartTestEventsTest.php +++ b/tests/Unit/CartTestEventsTest.php @@ -3,8 +3,7 @@ use Wearepixel\Cart\Cart; use Wearepixel\Cart\Tests\Helpers\SessionMock; -beforeEach(function () { -}); +beforeEach(function () {}); afterEach(function () { Mockery::close(); @@ -19,7 +18,7 @@ $events, 'cart', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); expect(true)->toBeTrue(); @@ -36,7 +35,7 @@ $events, 'cart', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); $cart->add(455, 'Sample Item', 100.99, 2, []); @@ -55,7 +54,7 @@ $events, 'cart', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); $cart->add(455, 'Sample Item 1', 100.99, 2, []); @@ -99,7 +98,7 @@ $events, 'cart', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); $cart->add($items); @@ -144,7 +143,7 @@ $events, 'cart', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); $cart->add($items); @@ -191,7 +190,7 @@ $events, 'cart', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); $cart->add($items); diff --git a/tests/Unit/CartTestMultipleInstancesTest.php b/tests/Unit/CartTestMultipleInstancesTest.php index 333d92c..eb1017c 100644 --- a/tests/Unit/CartTestMultipleInstancesTest.php +++ b/tests/Unit/CartTestMultipleInstancesTest.php @@ -12,7 +12,7 @@ $events, 'shopping', 'uniquesessionkey123', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); $this->cart2 = new Cart( @@ -20,7 +20,7 @@ $events, 'wishlist', 'uniquesessionkey456', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); }); diff --git a/tests/Unit/ItemTest.php b/tests/Unit/ItemTest.php index 0fc3222..fd18d39 100644 --- a/tests/Unit/ItemTest.php +++ b/tests/Unit/ItemTest.php @@ -14,7 +14,7 @@ $events, 'shopping', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMock.php') + require (__DIR__ . '/../Helpers/ConfigMock.php') ); }); diff --git a/tests/Unit/ItemTestOtherFormatTest.php b/tests/Unit/ItemTestOtherFormatTest.php index ba2150e..928e8af 100644 --- a/tests/Unit/ItemTestOtherFormatTest.php +++ b/tests/Unit/ItemTestOtherFormatTest.php @@ -12,7 +12,7 @@ $events, 'shopping', 'SAMPLESESSIONKEY', - require(__DIR__ . '/../Helpers/ConfigMockOtherFormat.php') + require (__DIR__ . '/../Helpers/ConfigMockOtherFormat.php') ); });