Code cleanup in parser

This commit is contained in:
Alf Magne Kalleland
2013-02-08 01:34:49 +01:00
parent 256b4ea739
commit 9050a454c5
5 changed files with 11 additions and 13 deletions

View File

@@ -35,6 +35,7 @@ class PgnGameParser{
$ret = array(
CHESS_JSON::GAME_METADATA=>array()
);
// TODO set lastmoves property by reading last 3-4 moves in moves array
$lines = explode("\n", $this->pgnGame);
foreach($lines as $line){
$line = trim($line);