Completed
Push — master ( 8e6c0f...d63375 )
by Stephan
02:11
created
src/Picqer/Financials/Exact/SalesInvoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
      * @return mixed
132 132
      */
133 133
     public function getSalesInvoiceLines() {
134
-        if(array_key_exists('__deferred', $this->attributes['SalesInvoiceLines'])) {
134
+        if (array_key_exists('__deferred', $this->attributes['SalesInvoiceLines'])) {
135 135
             $this->attributes['SalesInvoiceLines'] = (new SalesInvoiceLine($this->connection()))->filter("InvoiceID eq guid'{$this->InvoiceID}'");
136 136
         }
137 137
         return $this->attributes['SalesInvoiceLines'];
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/GeneralJournalEntry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 
43 43
     public function addItem(array $array)
44 44
     {
45
-        if ( ! isset( $this->attributes['GeneralJournalEntryLines'] ) || $this->attributes['GeneralJournalEntryLines'] == null) {
46
-            $this->attributes['GeneralJournalEntryLines'] = [ ];
45
+        if ( ! isset($this->attributes['GeneralJournalEntryLines']) || $this->attributes['GeneralJournalEntryLines'] == null) {
46
+            $this->attributes['GeneralJournalEntryLines'] = [];
47 47
         }
48 48
         $this->attributes['GeneralJournalEntryLines'][] = $array;
49 49
     }
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/PurchaseOrder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,10 +124,10 @@
 block discarded – undo
124 124
      */
125 125
     public function addItem(array $array)
126 126
     {
127
-        if (! isset($this->attributes['PurchaseOrderLines']) || $this->attributes['PurchaseOrderLines'] == null) {
127
+        if ( ! isset($this->attributes['PurchaseOrderLines']) || $this->attributes['PurchaseOrderLines'] == null) {
128 128
             $this->attributes['PurchaseOrderLines'] = [];
129 129
         }
130
-        if (! isset($array['LineNumber'])) {
130
+        if ( ! isset($array['LineNumber'])) {
131 131
             $array['LineNumber'] = count($this->attributes['PurchaseOrderLines']) + 1;
132 132
         }
133 133
         $this->attributes['PurchaseOrderLines'][] = $array;
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/CashEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
     public function addItem(array $array)
54 54
     {
55
-        if (! isset($this->attributes['CashEntryLines']) || $this->attributes['CashEntryLines'] == null) {
55
+        if ( ! isset($this->attributes['CashEntryLines']) || $this->attributes['CashEntryLines'] == null) {
56 56
             $this->attributes['CashEntryLines'] = [];
57 57
         }
58 58
         $this->attributes['CashEntryLines'][] = $array;
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/SalesOrder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,10 +142,10 @@
 block discarded – undo
142 142
      */
143 143
     public function addItem(array $array)
144 144
     {
145
-        if (! isset($this->attributes['SalesOrderLines']) || $this->attributes['SalesOrderLines'] == null) {
145
+        if ( ! isset($this->attributes['SalesOrderLines']) || $this->attributes['SalesOrderLines'] == null) {
146 146
             $this->attributes['SalesOrderLines'] = [];
147 147
         }
148
-        if (! isset($array['LineNumber'])) {
148
+        if ( ! isset($array['LineNumber'])) {
149 149
             $array['LineNumber'] = count($this->attributes['SalesOrderLines']) + 1;
150 150
         }
151 151
         $this->attributes['SalesOrderLines'][] = $array;
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/SalesEntry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,10 +112,10 @@
 block discarded – undo
112 112
 
113 113
     public function addItem(array $array)
114 114
     {
115
-        if (! isset($this->attributes['SalesEntryLines']) || $this->attributes['SalesEntryLines'] == null) {
115
+        if ( ! isset($this->attributes['SalesEntryLines']) || $this->attributes['SalesEntryLines'] == null) {
116 116
             $this->attributes['SalesEntryLines'] = [];
117 117
         }
118
-        if (! isset($array['LineNumber'])) {
118
+        if ( ! isset($array['LineNumber'])) {
119 119
             $array['LineNumber'] = count($this->attributes['SalesEntryLines']) + 1;
120 120
         }
121 121
         $this->attributes['SalesEntryLines'][] = $array;
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/PurchaseEntry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,10 +67,10 @@
 block discarded – undo
67 67
 
68 68
     public function addItem(array $array)
69 69
     {
70
-        if (! isset($this->attributes['PurchaseEntryLines']) || $this->attributes['PurchaseEntryLines'] == null) {
70
+        if ( ! isset($this->attributes['PurchaseEntryLines']) || $this->attributes['PurchaseEntryLines'] == null) {
71 71
             $this->attributes['PurchaseEntryLines'] = [];
72 72
         }
73
-        if (! isset($array['LineNumber'])) {
73
+        if ( ! isset($array['LineNumber'])) {
74 74
             $array['LineNumber'] = count($this->attributes['PurchaseEntryLines']) + 1;
75 75
         }
76 76
         $this->attributes['PurchaseEntryLines'][] = $array;
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/ReceivableList.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -32,22 +32,22 @@
 block discarded – undo
32 32
     protected $primaryKey = 'HID';
33 33
 
34 34
     protected $fillable = [
35
-		'AccountCode',
36
-		'AccountId',
37
-		'AccountName',
38
-		'Amount',
39
-		'AmountInTransit',
40
-		'CurrencyCode',
41
-		'Description',
42
-		'DueDate',
43
-		'EntryNumber',
44
-		'HID',
45
-		'Id',
46
-		'InvoiceDate',
47
-		'InvoiceNumber',
48
-		'JournalCode',
49
-		'JournalDescription',
50
-		'YourRef',
35
+        'AccountCode',
36
+        'AccountId',
37
+        'AccountName',
38
+        'Amount',
39
+        'AmountInTransit',
40
+        'CurrencyCode',
41
+        'Description',
42
+        'DueDate',
43
+        'EntryNumber',
44
+        'HID',
45
+        'Id',
46
+        'InvoiceDate',
47
+        'InvoiceNumber',
48
+        'JournalCode',
49
+        'JournalDescription',
50
+        'YourRef',
51 51
     ];
52 52
 
53 53
     protected $url = 'read/financial/ReceivablesList';
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/BankEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     public function addItem(array $array)
61 61
     {
62
-        if (! isset($this->attributes['BankEntryLines']) || $this->attributes['BankEntryLines'] == null) {
62
+        if ( ! isset($this->attributes['BankEntryLines']) || $this->attributes['BankEntryLines'] == null) {
63 63
             $this->attributes['BankEntryLines'] = [];
64 64
         }
65 65
         $this->attributes['BankEntryLines'][] = $array;
Please login to merge, or discard this patch.