@@ -16,6 +16,7 @@ |
||
16 | 16 | * Computes the name of the table based on the DAO plural module name. |
17 | 17 | * |
18 | 18 | * @param AbstractZohoDao $dao |
19 | + * @param string $prefix |
|
19 | 20 | * |
20 | 21 | * @return string |
21 | 22 | */ |
@@ -202,7 +202,6 @@ |
||
202 | 202 | * Insert data to bean in order to update zoho records. |
203 | 203 | * |
204 | 204 | * @param ZohoBeanInterface $zohoBean |
205 | - * @param array $fieldsMatching |
|
206 | 205 | * @param type $columnName |
207 | 206 | * @param type $valueDb |
208 | 207 | */ |
@@ -190,7 +190,6 @@ |
||
190 | 190 | /** |
191 | 191 | * Regerate Zoho Daos |
192 | 192 | * |
193 | - * @param InputInterface $input |
|
194 | 193 | * @param OutputInterface $output |
195 | 194 | */ |
196 | 195 | private function regenerateZohoDao(OutputInterface $output) |
@@ -95,18 +95,15 @@ |
||
95 | 95 | && array_key_exists('id', $user->{$fieldMethod}()) |
96 | 96 | ) { |
97 | 97 | $data[$column->getName()] = $user->{$fieldMethod}()['name']; |
98 | - } |
|
99 | - elseif (method_exists($user, $fieldMethod) |
|
98 | + } elseif (method_exists($user, $fieldMethod) |
|
100 | 99 | && is_object($user->{$fieldMethod}()) && method_exists($user->{$fieldMethod}(), 'getName') |
101 | 100 | ) { |
102 | 101 | $object = $user->{$fieldMethod}(); |
103 | 102 | $data[$column->getName()] = $object->getName(); |
104 | - } |
|
105 | - elseif($column->getName() === 'Currency') { |
|
103 | + } elseif($column->getName() === 'Currency') { |
|
106 | 104 | //Todo: Do a pull request about \ZCRMUser::geCurrency() to \ZCRMUser::getCurrency() |
107 | 105 | $data[$column->getName()] = $user->geCurrency(); |
108 | - } |
|
109 | - else { |
|
106 | + } else { |
|
110 | 107 | continue; |
111 | 108 | } |
112 | 109 | } |