Fixed IDE warnings
This commit is contained in:
@@ -10,7 +10,7 @@ class DGTGameParser {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPgnFromDGTData($remoteUrl, $toLocalPgnFile, $eventId=null) {
|
public function getPgnFromDGTData($remoteUrl) {
|
||||||
$this->remoteUrl = $this->getCorrectUrl($remoteUrl);
|
$this->remoteUrl = $this->getCorrectUrl($remoteUrl);
|
||||||
$gameIds = $this->getGameIds();
|
$gameIds = $this->getGameIds();
|
||||||
|
|
||||||
@@ -46,7 +46,6 @@ class DGTGameParser {
|
|||||||
|
|
||||||
private function getGameIds(){
|
private function getGameIds(){
|
||||||
$ret = array();
|
$ret = array();
|
||||||
$i = 1;
|
|
||||||
$content = $this->readRemoteFile($this->remoteUrl . 'tocks.txt');
|
$content = $this->readRemoteFile($this->remoteUrl . 'tocks.txt');
|
||||||
preg_match_all("/<(.*?)>/s", $content,$matches, PREG_SET_ORDER);
|
preg_match_all("/<(.*?)>/s", $content,$matches, PREG_SET_ORDER);
|
||||||
for($i=0,$count = count($matches);$i<$count; $i+=2){
|
for($i=0,$count = count($matches);$i<$count; $i+=2){
|
||||||
|
@@ -16,7 +16,6 @@ class ParserTest extends PHPUnit_Framework_TestCase
|
|||||||
private function getNumericSquare($square)
|
private function getNumericSquare($square)
|
||||||
{
|
{
|
||||||
return isset(Board0x88Config::$mapping[$square]) ? Board0x88Config::$mapping[$square] : null;
|
return isset(Board0x88Config::$mapping[$square]) ? Board0x88Config::$mapping[$square] : null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user