Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractZohoDao.php 2 locations

@@ 470-472 (lines=3) @@
467
                $records = array_merge($records, $response->getRecords());
468
            }
469
        }
470
        if (count($records) != count($beans)) {
471
            throw new ZohoCRMException('Error while inserting beans in Zoho. '.count($beans).' passed in parameter, but '.count($records).' returned.');
472
        }
473
474
        foreach ($beans as $key => $bean) {
475
            $record = $records[$key];
@@ 522-524 (lines=3) @@
519
                $records = array_merge($records, $response->getRecords());
520
            }
521
        }
522
        if (count($records) != count($beans)) {
523
            throw new ZohoCRMException('Error while inserting beans in Zoho. '.count($beans).' passed in parameter, but '.count($records).' returned.');
524
        }
525
526
        $exceptions = new \SplObjectStorage();
527