Spaces must be put around operators (please read our [styleguide](http://ellislab.com/codeigniter/user-guide/general/styleguide.html)).
Additionally, the above line can (and should) be moved inside here:

    for ($i = 0, $len = strlen($line); $i < $len; $i++)