Update CodeWriter.php

Fixes apache-crash duo many notice errors in large projects.