diff --git a/Form/ValidationTokenParser.php b/Form/ValidationTokenParser.php
index <HASH>..<HASH> 100644
--- a/Form/ValidationTokenParser.php
+++ b/Form/ValidationTokenParser.php
@@ -220,16 +220,10 @@ class ValidationTokenParser implements ValidationParser
         }
 
         $file->seek($lineNumber - 1);
-        $contents = '<?php ';
+        $contents = '<?php ' . $file->current();
 
-        while ($line = $file->fgets()) {
-            $contents .= $line;
-
-            if ($lineNumber === $class->getEndLine()) {
-                break;
-            }
-
-            $lineNumber++;
+        while ($lineNumber++ < $class->getEndLine()) {
+            $contents .= $file->fgets();
         }
 
         return $contents;
Fix of ValidationTokenParser - stop on the last line of the class file. (#4)

Fix of ValidationTokenParser parsing incorrect lines