@@ -246,8 +246,7 @@ |
||
246 | 246 | foreach ($table->getColumns() as $column) { |
247 | 247 | if (in_array($column->getName(),['id','uid'])) { |
248 | 248 | continue; |
249 | - } |
|
250 | - else { |
|
249 | + } else { |
|
251 | 250 | $field = $fieldsByName[$column->getName()]; |
252 | 251 | $getterName = $field['getter']; |
253 | 252 | $data[$column->getName()] = $record->$getterName(); |
@@ -106,9 +106,9 @@ |
||
106 | 106 | foreach ($row as $columnName => $columnValue) { |
107 | 107 | if (!in_array($columnName,['id','uid']) || isset($fieldsMatching[$columnName])) { |
108 | 108 | $value = $this->formatValueToBeans($zohoDao->getModule(), $fieldsMatching, $columnName, $columnValue, null, $row['uid']); |
109 | - if($columnValue){ |
|
110 | - $zohoBean->{$fieldsMatching[$columnName]['setter']}($value); |
|
111 | - } |
|
109 | + if($columnValue){ |
|
110 | + $zohoBean->{$fieldsMatching[$columnName]['setter']}($value); |
|
111 | + } |
|
112 | 112 | } |
113 | 113 | } |
114 | 114 | $zohoBeans[$row['uid']] = $zohoBean; |
@@ -99,7 +99,7 @@ |
||
99 | 99 | /* @var $zohoBean ZohoBeanInterface */ |
100 | 100 | if(isset($zohoBeans[$row['uid']])){ |
101 | 101 | $zohoBean = $zohoBeans[$row['uid']]; |
102 | - }else{ |
|
102 | + } else{ |
|
103 | 103 | $zohoBean = new $beanClassName(); |
104 | 104 | } |
105 | 105 | if(!$update){ |