Completed
Push — master ( 8e6c0f...d63375 )
by Stephan
02:11
created
src/Picqer/Financials/Exact/Connection.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -358,8 +358,7 @@
 block discarded – undo
358 358
             if (array_key_exists('d', $json)) {
359 359
                 if (array_key_exists('__next', $json['d'])) {
360 360
                     $this->nextUrl = $json['d']['__next'];
361
-                }
362
-                else {
361
+                } else {
363 362
                     $this->nextUrl = null;
364 363
                 }
365 364
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,8 +94,8 @@
 block discarded – undo
94 94
     protected $middleWares = [];
95 95
 
96 96
     /**
97
-    * @var string|null
98
-    */
97
+     * @var string|null
98
+     */
99 99
     public $nextUrl = null;
100 100
 
101 101
     /**
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/Model.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,8 +144,7 @@
 block discarded – undo
144 144
 
145 145
                 return true;
146 146
             }
147
-        }
148
-        catch (\Exception $e) {
147
+        } catch (\Exception $e) {
149 148
             // We tried lets leave it as is.
150 149
         }
151 150
 
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/Persistance/Downloadable.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         ];
28 28
 
29 29
         $res = $client->get($uri, [
30
-          'headers' => $headers
30
+            'headers' => $headers
31 31
         ]);
32 32
 
33 33
         return $res->getBody();
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/Query/Findable.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
             $format = ($this->url() == 'crm/Accounts' && $key === 'Code') ? '%18s' : '%s';
65 65
             if (preg_match('/^[\w]{8}-([\w]{4}-){3}[\w]{12}$/', $code)) {
66 66
                 $format = "guid'$format'";
67
-            }
68
-            elseif (is_string($code)) {
67
+            } elseif (is_string($code)) {
69 68
                 $format = "'$format'";
70 69
             }
71 70
 
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/DocumentType.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,15 +23,15 @@
 block discarded – undo
23 23
     use Query\Findable;
24 24
 
25 25
     protected $fillable = [
26
-      'ID',
27
-    	'Created',
28
-    	'Description',
29
-    	'DocumentIsCreatable',
30
-    	'DocumentIsDeletable',
31
-    	'DocumentIsUpdatable',
32
-    	'DocumentIsViewable',
33
-    	'Modified',
34
-    	'TypeCategory'
26
+        'ID',
27
+        'Created',
28
+        'Description',
29
+        'DocumentIsCreatable',
30
+        'DocumentIsDeletable',
31
+        'DocumentIsUpdatable',
32
+        'DocumentIsViewable',
33
+        'Modified',
34
+        'TypeCategory'
35 35
     ];
36 36
 
37 37
     protected $url = 'documents/DocumentTypes';
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/Units.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
  * @property int $Main	Indicates the main unit per division. Will be used when creating new item
17 17
  * @property string $TimeUnit If Type = 'T' (time) then this fields indicates the type of time frame. yy = Year, mm = Month, wk = Week, dd = Day, hh = Hour, mi = Minute, ss = Second
18 18
  * @property string $Type Type 'Time' is especially important for contracts.
19
-
20 19
  */
21 20
 class Units extends Model
22 21
 {
Please login to merge, or discard this patch.