Apply Laravel Pint

Signed-off-by: Pixel Tech <tech@wearepixel.com.au>
This commit is contained in:
Pixel Tech
2024-09-08 02:21:01 +00:00
parent d4d4df7d58
commit b7381573e8
12 changed files with 19 additions and 34 deletions
+1 -3
View File
@@ -4,6 +4,4 @@
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
class CartCollection extends Collection class CartCollection extends Collection {}
{
}
+1 -3
View File
@@ -4,6 +4,4 @@
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
class CartConditionCollection extends Collection class CartConditionCollection extends Collection {}
{
}
+1 -3
View File
@@ -2,6 +2,4 @@
namespace Wearepixel\Cart\Exceptions; namespace Wearepixel\Cart\Exceptions;
class InvalidConditionException extends \Exception class InvalidConditionException extends \Exception {}
{
}
+1 -3
View File
@@ -2,6 +2,4 @@
namespace Wearepixel\Cart\Exceptions; namespace Wearepixel\Cart\Exceptions;
class InvalidItemException extends \Exception class InvalidItemException extends \Exception {}
{
}
+1 -3
View File
@@ -2,6 +2,4 @@
namespace Wearepixel\Cart\Exceptions; namespace Wearepixel\Cart\Exceptions;
class UnknownModelException extends \Exception class UnknownModelException extends \Exception {}
{
}
+1 -3
View File
@@ -2,6 +2,4 @@
namespace Wearepixel\Cart\Validators; namespace Wearepixel\Cart\Validators;
class CartConditionValidator extends Validator class CartConditionValidator extends Validator {}
{
}
+1 -3
View File
@@ -2,6 +2,4 @@
namespace Wearepixel\Cart\Validators; namespace Wearepixel\Cart\Validators;
class CartItemValidator extends Validator class CartItemValidator extends Validator {}
{
}
+1 -1
View File
@@ -13,7 +13,7 @@
$events, $events,
'shopping', 'shopping',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
}); });
+7 -8
View File
@@ -3,8 +3,7 @@
use Wearepixel\Cart\Cart; use Wearepixel\Cart\Cart;
use Wearepixel\Cart\Tests\Helpers\SessionMock; use Wearepixel\Cart\Tests\Helpers\SessionMock;
beforeEach(function () { beforeEach(function () {});
});
afterEach(function () { afterEach(function () {
Mockery::close(); Mockery::close();
@@ -19,7 +18,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
expect(true)->toBeTrue(); expect(true)->toBeTrue();
@@ -36,7 +35,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add(455, 'Sample Item', 100.99, 2, []); $cart->add(455, 'Sample Item', 100.99, 2, []);
@@ -55,7 +54,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add(455, 'Sample Item 1', 100.99, 2, []); $cart->add(455, 'Sample Item 1', 100.99, 2, []);
@@ -99,7 +98,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add($items); $cart->add($items);
@@ -144,7 +143,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add($items); $cart->add($items);
@@ -191,7 +190,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add($items); $cart->add($items);
+2 -2
View File
@@ -12,7 +12,7 @@
$events, $events,
'shopping', 'shopping',
'uniquesessionkey123', 'uniquesessionkey123',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
$this->cart2 = new Cart( $this->cart2 = new Cart(
@@ -20,7 +20,7 @@
$events, $events,
'wishlist', 'wishlist',
'uniquesessionkey456', 'uniquesessionkey456',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
}); });
+1 -1
View File
@@ -14,7 +14,7 @@
$events, $events,
'shopping', 'shopping',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMock.php') require (__DIR__ . '/../Helpers/ConfigMock.php')
); );
}); });
+1 -1
View File
@@ -12,7 +12,7 @@
$events, $events,
'shopping', 'shopping',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigMockOtherFormat.php') require (__DIR__ . '/../Helpers/ConfigMockOtherFormat.php')
); );
}); });