Code Duplication    Length = 3-3 lines in 2 locations

src/Service/EntitiesGeneratorService.php 2 locations

@@ 277-279 (lines=3) @@
274
        $generator = new CodeFileGenerator();
275
        $code = $generator->generate($class);
276
277
        if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$className.'.php', $code)) {
278
            throw new ZohoCRMORMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file.");
279
        }
280
    }
281
282
    /**
@@ 419-421 (lines=3) @@
416
        $generator = new CodeFileGenerator();
417
        $code = $generator->generate($class);
418
419
        if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$daoClassName.'.php', $code)) {
420
            throw new ZohoCRMORMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file.");
421
        }
422
    }
423
424
    private static function camelCase($str, array $noStrip = [])