Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractZohoDao.php 2 locations

@@ 479-481 (lines=3) @@
476
                $records = array_merge($records, $response->getRecords());
477
            }
478
        }
479
        if (count($records) != count($beans)) {
480
            throw new ZohoCRMException('Error while inserting beans in Zoho. '.count($beans).' passed in parameter, but '.count($records).' returned.');
481
        }
482
483
        foreach ($beans as $key => $bean) {
484
            $record = $records[$key];
@@ 533-535 (lines=3) @@
530
                $records = array_merge($records, $response->getRecords());
531
            }
532
        }
533
        if (count($records) != count($beans)) {
534
            throw new ZohoCRMException('Error while inserting beans in Zoho. '.count($beans).' passed in parameter, but '.count($records).' returned.');
535
        }
536
537
        $exceptions = new \SplObjectStorage();
538