@@ -36,7 +36,7 @@ |
||
36 | 36 | 'description' => 'no desc!', |
37 | 37 | 'packaging_cost' => 100, |
38 | 38 | 'length' => 2.1, // inches |
39 | - 'width' => 2.2, // inches |
|
39 | + 'width' => 2.2, // inches |
|
40 | 40 | 'height' => 2.3, // inches |
41 | 41 | 'weight' => 2.4, // ounces |
42 | 42 | 'quantity' => 4000, |
@@ -28,7 +28,7 @@ |
||
28 | 28 | return [ |
29 | 29 | 'object' => 'ItemImage', |
30 | 30 | 'id' => $itemImage->getHashedKey(), |
31 | - 'source' => Config::get('app.url') . '/uploads/' . $itemImage->source, |
|
31 | + 'source' => Config::get('app.url') . '/uploads/' . $itemImage->source, |
|
32 | 32 | 'name' => $itemImage->name, |
33 | 33 | 'description' => $itemImage->description, |
34 | 34 | 'default' => (boolean)$itemImage->default, |
@@ -3,7 +3,7 @@ |
||
3 | 3 | use App\Containers\Store\Models\Store; |
4 | 4 | use App\Containers\User\Models\User; |
5 | 5 | |
6 | -$factory->define(Store::class, function (Faker\Generator $faker) { |
|
6 | +$factory->define(Store::class, function(Faker\Generator $faker) { |
|
7 | 7 | return [ |
8 | 8 | 'title' => $faker->text(10), |
9 | 9 | 'warehouse_name' => $faker->userName, |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function up() |
20 | 20 | { |
21 | - Schema::create('stores', function (Blueprint $table) { |
|
21 | + Schema::create('stores', function(Blueprint $table) { |
|
22 | 22 | $table->increments('id'); |
23 | 23 | |
24 | 24 | $table->string('warehouse_name'); |
@@ -53,9 +53,9 @@ |
||
53 | 53 | |
54 | 54 | $order->store()->associate($storeId); |
55 | 55 | |
56 | - try{ |
|
56 | + try { |
|
57 | 57 | $order = $this->orderRepository->create($order->toArray()); |
58 | - }catch (Exception $e){ |
|
58 | + } catch (Exception $e) { |
|
59 | 59 | throw new CouldNotCreateOrderException('Could not create Order! make sure the external_id is unique and all information sent correctly.'); |
60 | 60 | } |
61 | 61 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | try{ |
57 | 57 | $order = $this->orderRepository->create($order->toArray()); |
58 | - }catch (Exception $e){ |
|
58 | + } catch (Exception $e){ |
|
59 | 59 | throw new CouldNotCreateOrderException('Could not create Order! make sure the external_id is unique and all information sent correctly.'); |
60 | 60 | } |
61 | 61 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function run($data, $orderId) |
38 | 38 | { |
39 | - return $this->updateOrderTask->run($data, $orderId); |
|
39 | + return $this->updateOrderTask->run($data, $orderId); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | use App\Containers\Order\Models\Order; |
4 | 4 | use App\Containers\Store\Models\Store; |
5 | 5 | |
6 | -$factory->define(Order::class, function (Faker\Generator $faker) { |
|
6 | +$factory->define(Order::class, function(Faker\Generator $faker) { |
|
7 | 7 | return [ |
8 | 8 | 'status' => 'draft', |
9 | 9 | 'external_id' => $faker->uuid, |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function up() |
20 | 20 | { |
21 | - Schema::create('orders', function (Blueprint $table) { |
|
21 | + Schema::create('orders', function(Blueprint $table) { |
|
22 | 22 | $table->increments('id'); |
23 | 23 | |
24 | 24 | $table->string('retail_price')->nullable(); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function up() |
20 | 20 | { |
21 | - Schema::create('order_recipient', function (Blueprint $table) { |
|
21 | + Schema::create('order_recipient', function(Blueprint $table) { |
|
22 | 22 | $table->integer('recipient_id')->unsigned()->index(); |
23 | 23 | $table->foreign('recipient_id')->references('id')->on('recipients')->onDelete('cascade'); |
24 | 24 |