Completed
Pull Request — master (#276)
by
unknown
07:10
created
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
         $filtered = $this->filter($filter);
112 112
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
         $result = $this->connection()->get($this->url(), $request, $headers);
147 147
 
148
-        if (!empty($divisionId)) {
148
+        if ( ! empty($divisionId)) {
149 149
             $this->connection()->setDivision($originalDivision); // Restore division
150 150
         }
151 151
 
Please login to merge, or discard this patch.