@@ -4,7 +4,7 @@ |
||
4 | 4 | use App\Containers\Application\Models\Application; |
5 | 5 | use App\Containers\Store\Models\Store; |
6 | 6 | |
7 | -$factory->define(Application::class, function (Faker\Generator $faker) { |
|
7 | +$factory->define(Application::class, function(Faker\Generator $faker) { |
|
8 | 8 | |
9 | 9 | return [ |
10 | 10 | 'name' => $faker->name, |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use App\Containers\User\Models\User; |
5 | 5 | use Faker\Generator; |
6 | 6 | |
7 | -$factory->define(StripeAccount::class, function (Generator $faker) { |
|
7 | +$factory->define(StripeAccount::class, function(Generator $faker) { |
|
8 | 8 | return [ |
9 | 9 | 'customer_id' => $faker->uuid(), |
10 | 10 | 'card_id' => $faker->creditCardNumber(), |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use App\Containers\PrintJob\Models\PrintJob; |
6 | 6 | use App\Containers\User\Models\User; |
7 | 7 | |
8 | -$factory->define(PrintJob::class, function (Faker\Generator $faker) { |
|
8 | +$factory->define(PrintJob::class, function(Faker\Generator $faker) { |
|
9 | 9 | return [ |
10 | 10 | 'status' => 'draft', |
11 | 11 | 'quantity' => $faker->numberBetween(3, 8), |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function up() |
20 | 20 | { |
21 | - Schema::create('artwork_print_job', function (Blueprint $table) { |
|
21 | + Schema::create('artwork_print_job', function(Blueprint $table) { |
|
22 | 22 | $table->integer('print_job_id')->unsigned()->index(); |
23 | 23 | $table->foreign('print_job_id')->references('id')->on('print_jobs')->onDelete('cascade'); |
24 | 24 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function up() |
20 | 20 | { |
21 | - Schema::create('print_jobs', function (Blueprint $table) { |
|
21 | + Schema::create('print_jobs', function(Blueprint $table) { |
|
22 | 22 | $table->increments('id'); |
23 | 23 | |
24 | 24 | $table->integer('quantity')->default(1); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 'price' => $price, |
58 | 58 | 'packaging_cost' => $packagingCost, |
59 | 59 | 'length' => $length, // inches |
60 | - 'width' => $width, // inches |
|
60 | + 'width' => $width, // inches |
|
61 | 61 | 'height' => $height, // inches |
62 | 62 | 'weight' => $weight, // ounces |
63 | 63 | 'quantity' => $quantity, |
@@ -92,7 +92,7 @@ |
||
92 | 92 | $updateTrigger = true; |
93 | 93 | } |
94 | 94 | |
95 | - if($updateTrigger){ |
|
95 | + if ($updateTrigger) { |
|
96 | 96 | $item = $this->itemRepository->update($item->toArray(), $item->id); |
97 | 97 | } |
98 | 98 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | public function scopeItemVariantNamesAndValues() |
50 | 50 | { |
51 | 51 | return $this->with([ |
52 | - 'itemVariants' => function ($q) { |
|
52 | + 'itemVariants' => function($q) { |
|
53 | 53 | $q->with('itemVariantValues'); |
54 | 54 | } |
55 | 55 | ]); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | 'sku', |
30 | 30 | 'packaging_cost', |
31 | 31 | 'length', // inches |
32 | - 'width', // inches |
|
32 | + 'width', // inches |
|
33 | 33 | 'height', // inches |
34 | 34 | 'weight', // ounces |
35 | 35 | 'quantity', |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function scopeItemVariantNamesAndValues() |
68 | 68 | { |
69 | 69 | return $this->with([ |
70 | - 'itemVariantValues' => function ($q) { |
|
70 | + 'itemVariantValues' => function($q) { |
|
71 | 71 | $q->with('itemVariantName'); |
72 | 72 | } |
73 | 73 | ]); |