Completed
Pull Request — master (#276)
by
unknown
04:07 queued 01:48
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
         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.