@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 |
||
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 |