Browse Source

Fixed IDE warnings

master
Alf Magne Kalleland 9 years ago
parent
commit
5e0f62c7b6
  1. 3
      DGTGameParser.php
  2. 1
      test/ParserTest.php

3
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){

1
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;
}
/**

Loading…
Cancel
Save