Completed
Pull Request — master (#276)
by
unknown
04:07 queued 01:48
created
src/Picqer/Financials/Exact/Query/Resultset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         // If we have one result which is not an assoc array, make it the first element of an array for the
36 36
         // collectionFromResult function so we always return a collection from filter
37 37
         if ((bool) count(array_filter(array_keys($result), 'is_string'))) {
38
-            $result = [ $result ];
38
+            $result = [$result];
39 39
         }
40 40
 
41 41
         $class = $this->class;
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/PurchaseInvoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      * @return mixed
78 78
      */
79 79
     public function getSalesInvoiceLines() {
80
-        if(array_key_exists('__deferred', $this->attributes['PurchaseInvoiceLines'])) {
80
+        if (array_key_exists('__deferred', $this->attributes['PurchaseInvoiceLines'])) {
81 81
             $this->attributes['PurchaseInvoiceLines'] = (new PurchaseInvoiceLine($this->connection()))->filter("InvoiceID eq guid'{$this->ID}'");
82 82
         }
83 83
         return $this->attributes['PurchaseInvoiceLines'];
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
 
242 242
                 $attributes[$attribute] = [];
243 243
                 foreach ($collection as $value) {
244
-                    if(!empty($value->deferred)) {
244
+                    if ( ! empty($value->deferred)) {
245 245
                         $value->attributes = array_merge($value->attributes, $value->deferred);
246 246
                     }
247 247
 
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/Query/Findable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @return string (guid)
61 61
      */
62
-    public function findId($code, $key='Code')
62
+    public function findId($code, $key = 'Code')
63 63
     {
64 64
         if ($this->isFillable($key)) {
65 65
             $format = ($this->url() == 'crm/Accounts' && $key === 'Code') ? '%18s' : '%s';
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $baseName = $this->getModelBaseName($model);
108 108
 
109
-        $filter = $baseName.' eq guid\''.$model->primaryKeyContent() .'\'';
109
+        $filter = $baseName . ' eq guid\'' . $model->primaryKeyContent() . '\'';
110 110
 
111 111
         return $this->filter($filter);
112 112
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
         $result = $this->connection()->get($this->url(), $request, $headers);
149 149
 
150
-        if (!empty($divisionId)) {
150
+        if ( ! empty($divisionId)) {
151 151
             $this->connection()->setDivision($originalDivision); // Restore division
152 152
         }
153 153
 
Please login to merge, or discard this patch.