From 5e0f62c7b67d8c11f6acc94caf02ee34566197ae Mon Sep 17 00:00:00 2001 From: Alf Magne Kalleland Date: Wed, 6 Feb 2013 23:47:38 +0100 Subject: [PATCH] Fixed IDE warnings --- DGTGameParser.php | 3 +-- test/ParserTest.php | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DGTGameParser.php b/DGTGameParser.php index de5b6a8..b7401cd 100644 --- a/DGTGameParser.php +++ b/DGTGameParser.php @@ -10,7 +10,7 @@ class DGTGameParser { } - public function getPgnFromDGTData($remoteUrl, $toLocalPgnFile, $eventId=null) { + public function getPgnFromDGTData($remoteUrl) { $this->remoteUrl = $this->getCorrectUrl($remoteUrl); $gameIds = $this->getGameIds(); @@ -46,7 +46,6 @@ class DGTGameParser { private function getGameIds(){ $ret = array(); - $i = 1; $content = $this->readRemoteFile($this->remoteUrl . 'tocks.txt'); preg_match_all("/<(.*?)>/s", $content,$matches, PREG_SET_ORDER); for($i=0,$count = count($matches);$i<$count; $i+=2){ diff --git a/test/ParserTest.php b/test/ParserTest.php index 6dc3787..0e790b9 100644 --- a/test/ParserTest.php +++ b/test/ParserTest.php @@ -16,7 +16,6 @@ class ParserTest extends PHPUnit_Framework_TestCase private function getNumericSquare($square) { return isset(Board0x88Config::$mapping[$square]) ? Board0x88Config::$mapping[$square] : null; - } /**