Code Duplication    Length = 5-5 lines in 2 locations

src/ZohoDatabasePusher.php 2 locations

@@ 142-146 (lines=5) @@
139
                            continue;
140
                        }
141
142
                        if (isset($zohoBeans[$record['uid']])) {
143
                            $zohoBean = $zohoBeans[$record['uid']];
144
                        } else {
145
                            $zohoBean = $zohoDao->create();
146
                        }
147
148
                        if ($record['id'] && !$zohoBean->getZohoId()) {
149
                            $zohoBean->setZohoId($record['id']);
@@ 229-233 (lines=5) @@
226
                            continue;
227
                        }
228
229
                        if (isset($zohoBeans[$record['uid']])) {
230
                            $zohoBean = $zohoBeans[$record['uid']];
231
                        } else {
232
                            $zohoBean = $zohoDao->create();
233
                        }
234
235
                        $this->logger->debug(sprintf('New row with uid %s from table %s added in queue to be pushed.', $record['uid'], $tableName));
236
                        $this->insertDataZohoBean($zohoDao, $zohoBean, $record);