Update CodeSampleGenerator.php