@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | public function findOneByID($moduleName, $entityID, array $select = [ ]) |
| 63 | 63 | { |
| 64 | 64 | $entityID = $this->wsClient->modules->getTypedID($moduleName, $entityID); |
| 65 | - $record = $this->wsClient->invokeOperation('retrieve', ['id' => $entityID], 'GET'); |
|
| 65 | + $record = $this->wsClient->invokeOperation('retrieve', [ 'id' => $entityID ], 'GET'); |
|
| 66 | 66 | if (!is_array($record)) |
| 67 | 67 | return null; |
| 68 | 68 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | return null; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - $record = $records[0]; |
|
| 103 | + $record = $records[ 0 ]; |
|
| 104 | 104 | return (!is_array($record) || !isset($record[ 'id' ]) || empty($record[ 'id' ])) |
| 105 | 105 | ? null |
| 106 | 106 | : $record[ 'id' ]; |
@@ -63,8 +63,9 @@ |
||
| 63 | 63 | { |
| 64 | 64 | $entityID = $this->wsClient->modules->getTypedID($moduleName, $entityID); |
| 65 | 65 | $record = $this->wsClient->invokeOperation('retrieve', ['id' => $entityID], 'GET'); |
| 66 | - if (!is_array($record)) |
|
| 67 | - return null; |
|
| 66 | + if (!is_array($record)) { |
|
| 67 | + return null; |
|
| 68 | + } |
|
| 68 | 69 | |
| 69 | 70 | return (empty($select)) |
| 70 | 71 | ? $record |