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

@@ -1,8 +1,5 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
class FenParser0x88
{
private $fen;
@@ -1278,7 +1275,7 @@ class FenParser0x88
function getFen()
{
if (!$this->fen) {
$this->fen = $this->setNewFen();
$this->fen = $this->getNewFen();
}
return $this->fen;
}
@@ -1351,7 +1348,7 @@ class FenParser0x88
}
function setNewFen()
private function getNewFen()
{
$board = $this->cache['board'];
$fen = '';