@@ -57,12 +57,12 @@ |
||
57 | 57 | * @param Product $product |
58 | 58 | * @return AbstractCollect |
59 | 59 | */ |
60 | - abstract public function newCollect (Product $product); |
|
60 | + abstract public function newCollect(Product $product); |
|
61 | 61 | |
62 | 62 | /** |
63 | 63 | * @return Product[] |
64 | 64 | */ |
65 | - public function getProducts () { |
|
65 | + public function getProducts() { |
|
66 | 66 | return Product::loadAll($this, "collections/{$this->getId()}/products"); |
67 | 67 | } |
68 | 68 | } |
69 | 69 | \ No newline at end of file |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * @return CustomCollection |
23 | 23 | */ |
24 | - public function getCollection () { |
|
24 | + public function getCollection() { |
|
25 | 25 | return CustomCollection::load($this, $this->getCollectionId()); |
26 | 26 | } |
27 | 27 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param bool $paymentPending |
54 | 54 | * @return $this |
55 | 55 | */ |
56 | - public function complete (bool $paymentPending = false) { |
|
56 | + public function complete(bool $paymentPending = false) { |
|
57 | 57 | assert($this->hasId()); |
58 | 58 | $remote = $this->api->put("{$this}/complete", [ |
59 | 59 | 'payment_pending' => ['false', 'true'][$paymentPending] |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @param Invoice|null $invoice |
68 | 68 | * @return $this |
69 | 69 | */ |
70 | - public function sendInvoice (Invoice $invoice = null) { |
|
70 | + public function sendInvoice(Invoice $invoice = null) { |
|
71 | 71 | assert($this->hasId()); |
72 | 72 | $this->api->post("{$this}/send_invoice", [ |
73 | 73 | 'draft_order_invoice' => $invoice ? $invoice->toArray() : (object)[] |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * @param Product $product |
23 | 23 | * @return CustomCollect |
24 | 24 | */ |
25 | - public function newCollect (Product $product) { |
|
25 | + public function newCollect(Product $product) { |
|
26 | 26 | return $this->api->factory($this, CustomCollect::class, [ |
27 | 27 | 'collection_id' => $this->getId(), |
28 | 28 | 'product_id' => $product->getId() |