Code Duplication    Length = 3-3 lines in 2 locations

src/Service/EntitiesGeneratorService.php 2 locations

@@ 212-214 (lines=3) @@
209
        $generator = new CodeFileGenerator();
210
        $code = $generator->generate($class);
211
212
        if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$className.'.php', $code)) {
213
            throw new ZohoCRMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file.");
214
        }
215
    }
216
217
    /**
@@ 372-374 (lines=3) @@
369
        $generator = new CodeFileGenerator();
370
        $code = $generator->generate($class);
371
372
        if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$daoClassName.'.php', $code)) {
373
            throw new ZohoCRMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file.");
374
        }
375
    }
376
377
    private static function camelCase($str, array $noStrip = [])