@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @return string (guid) |
| 60 | 60 | */ |
| 61 | - public function findId($code, $key='Code') |
|
| 61 | + public function findId($code, $key = 'Code') |
|
| 62 | 62 | { |
| 63 | 63 | if ($this->isFillable($key)) { |
| 64 | 64 | $format = ($this->url() == 'crm/Accounts' && $key === 'Code') ? '%18s' : '%s'; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $result = $this->connection()->get($this->url(), $request, $headers); |
| 110 | 110 | |
| 111 | - if (!empty($divisionId)) { |
|
| 111 | + if ( ! empty($divisionId)) { |
|
| 112 | 112 | $this->connection()->setDivision($originalDivision); // Restore division |
| 113 | 113 | } |
| 114 | 114 | |
@@ -64,8 +64,7 @@ |
||
| 64 | 64 | $format = ($this->url() == 'crm/Accounts' && $key === 'Code') ? '%18s' : '%s'; |
| 65 | 65 | if (preg_match('/^[\w]{8}-([\w]{4}-){3}[\w]{12}$/', $code)) { |
| 66 | 66 | $format = "guid'$format'"; |
| 67 | - } |
|
| 68 | - elseif (is_string($code)) { |
|
| 67 | + } elseif (is_string($code)) { |
|
| 69 | 68 | $format = "'$format'"; |
| 70 | 69 | } |
| 71 | 70 | |