Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractZohoDao.php 2 locations

@@ 443-445 (lines=3) @@
440
                $records = array_merge($records, $response->getRecords());
441
            }
442
        }
443
        if (count($records) != count($beans)) {
444
            throw new ZohoCRMException('Error while inserting beans in Zoho. '.count($beans).' passed in parameter, but '.count($records).' returned.');
445
        }
446
447
        foreach ($beans as $key => $bean) {
448
            $record = $records[$key];
@@ 495-497 (lines=3) @@
492
                $records = array_merge($records, $response->getRecords());
493
            }
494
        }
495
        if (count($records) != count($beans)) {
496
            throw new ZohoCRMException('Error while inserting beans in Zoho. '.count($beans).' passed in parameter, but '.count($records).' returned.');
497
        }
498
499
        $exceptions = new \SplObjectStorage();
500