Skip to content

Commit 14c70fd

Browse files
glennjacobsStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent df984ce commit 14c70fd

109 files changed

Lines changed: 600 additions & 463 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/orders.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@
2626
'draft_status' => 'awaiting-payment',
2727
'statuses' => [
2828
'awaiting-payment' => [
29-
'label' => 'Awaiting Payment',
30-
'color' => '#848a8c',
31-
'mailers' => [],
29+
'label' => 'Awaiting Payment',
30+
'color' => '#848a8c',
31+
'mailers' => [],
3232
'notifications' => [],
3333
],
3434
'payment-received' => [
35-
'label' => 'Payment Received',
36-
'color' => '#6a67ce',
37-
'mailers' => [],
35+
'label' => 'Payment Received',
36+
'color' => '#6a67ce',
37+
'mailers' => [],
3838
'notifications' => [],
3939
],
4040
'dispatched' => [
41-
'label' => 'Dispatched',
42-
'mailers' => [],
41+
'label' => 'Dispatched',
42+
'mailers' => [],
4343
'notifications' => [],
4444
],
4545
],

config/payments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'types' => [
77
'cash-in-hand' => [
8-
'driver' => 'offline',
8+
'driver' => 'offline',
99
'authorized' => 'payment-offline',
1010
],
1111
],

database/factories/OrderFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function definition(): array
2626
'tax_breakdown' => [
2727
[
2828
'description' => 'VAT',
29-
'total' => 200,
30-
'percentage' => 20,
29+
'total' => 200,
30+
'percentage' => 20,
3131
],
3232
],
3333
'tax_total' => $taxTotal,

database/factories/OrderLineFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public function definition(): array
3030
'tax_breakdown' => [
3131
[
3232
'description' => 'VAT',
33-
'total' => 200,
34-
'percentage' => 20,
33+
'total' => 200,
34+
'percentage' => 20,
3535
],
3636
],
3737
'tax_total' => $this->faker->numberBetween(1, 5000),

database/migrations/2021_08_10_101547_create_media_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CreateMediaTable extends Migration
88
{
99
public function up()
1010
{
11-
if (! Schema::hasTable('media')) {
11+
if (!Schema::hasTable('media')) {
1212
Schema::create('media', function (Blueprint $table) {
1313
$table->bigIncrements('id');
1414

database/migrations/2021_08_17_142630_create_activity_log_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function up()
1010
{
1111
$tableName = config('activitylog.table_name');
1212

13-
if (! Schema::hasTable($tableName)) {
13+
if (!Schema::hasTable($tableName)) {
1414
Schema::create($tableName, function (Blueprint $table) {
1515
$table->bigIncrements('id');
1616
$table->string('log_name')->nullable();

database/state/ConvertProductTypeAttributesToProducts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function run()
1313
{
1414
$prefix = config('getcandy.database.table_prefix');
1515

16-
if (! $this->canRun()) {
16+
if (!$this->canRun()) {
1717
return;
1818
}
1919

database/state/EnsureDefaultTaxClassExists.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class EnsureDefaultTaxClassExists
99
{
1010
public function run()
1111
{
12-
if (! $this->canRun() || ! $this->shouldRun()) {
12+
if (!$this->canRun() || !$this->shouldRun()) {
1313
return;
1414
}
1515

@@ -32,6 +32,6 @@ protected function canRun()
3232

3333
protected function shouldRun()
3434
{
35-
return ! TaxClass::whereDefault(true)->count();
35+
return !TaxClass::whereDefault(true)->count();
3636
}
3737
}

database/state/EnsureUserOrdersHaveACustomer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class EnsureUserOrdersHaveACustomer
1010
{
1111
public function run()
1212
{
13-
if (! $this->canRun()) {
13+
if (!$this->canRun()) {
1414
return;
1515
}
1616

src/Actions/Carts/CalculateLine.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ class CalculateLine
1414
/**
1515
* Execute the action.
1616
*
17-
* @param \GetCandy\Models\CartLine $cartLine
18-
* @param \Illuminate\Database\Eloquent\Collection $customerGroups
17+
* @param \GetCandy\Models\CartLine $cartLine
18+
* @param \Illuminate\Database\Eloquent\Collection $customerGroups
19+
*
1920
* @return \GetCandy\Models\CartLine
2021
*/
2122
public function execute(
@@ -29,7 +30,7 @@ public function execute(
2930
$unitQuantity = $purchasable->getUnitQuantity();
3031

3132
// we check if any cart line modifiers have already specified a unit price in their calculating() method
32-
if (! ($price = $cartLine->unitPrice) instanceof Price) {
33+
if (!($price = $cartLine->unitPrice) instanceof Price) {
3334
$priceResponse = Pricing::currency($cart->currency)
3435
->qty($cartLine->quantity)
3536
->currency($cart->currency)
@@ -47,7 +48,8 @@ public function execute(
4748
$unitPrice = (int) round(
4849
(($price->decimal / $purchasable->getUnitQuantity())
4950
* $cart->currency->factor),
50-
$cart->currency->decimal_places);
51+
$cart->currency->decimal_places
52+
);
5153

5254
$subTotal = $unitPrice * $cartLine->quantity;
5355

0 commit comments

Comments
 (0)