@@ -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 | return $this->filter($filter); |
| 112 | 112 | } |
@@ -147,7 +147,7 @@ discard block |
||
| 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 | |