Passed
Branch master (9b6ab6)
by y
01:32
created
src/Collection/AbstractCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,12 +57,12 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/CustomCollection/CustomCollect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DraftOrder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)[]
Please login to merge, or discard this patch.
src/CustomCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.