Compare commits

..

No commits in common. "3108c28725f15c787fedfd35489b5ec889410380" and "b1fe9d20c3cda346fc75b10a3e40fcb0677b29af" have entirely different histories.

View File

@ -242,34 +242,19 @@ class Swar5 implements ReaderInterface
$this->Tournament->FideHomol = $this->readData('Int', $swshandle);
if (version_compare($this->Release, '5.24', ">=")) {
$this->Tournament->FideId = $this->readData('Int', $swshandle);
} else {
for ($i = 0; $i <= 15; $i++) {
// First round
$this->readData('Int', $swshandle);
//last round
$this->readData('Int', $swshandle);
//fide ID
$this->readData('Int', $swshandle);
}
}
$this->Tournament->FideId = $this->readData('String', $swshandle);
$this->Tournament->FideArbitre1 = $this->readData('String', $swshandle);
$this->Tournament->FideArbitre2 = $this->readData('String', $swshandle);
$this->Tournament->FideEmail = $this->readData('String', $swshandle);
$this->Tournament->FideRemarques = $this->readData('String', $swshandle);
$applycustompoints = false;
switch ($this->readData('Int', $swshandle)) {
case 0:
case 1:
case 2:
case 3:
default:
$system = TournamentSystem::SWISS;
break;
case 4:
$applycustompoints = true;
default:
$system = TournamentSystem::SWISS;
break;
case 5:
@ -289,12 +274,11 @@ class Swar5 implements ReaderInterface
$this->Tournament->SW_AmerPresence = $this->readData('Int', $swshandle);
$this->Tournament->Plusieurs = $this->readData('Int', $swshandle);
$this->Tournament->FirstTable = $this->readData('Int', $swshandle);
$custompoints['win'] = $this->readData('Int', $swshandle) / 4;
$custompoints['draw'] = $this->readData('Int', $swshandle) / 4;
$custompoints['loss'] = $this->readData('Int', $swshandle) / 4;
$custompoints['bye'] = $this->readData('Int', $swshandle) / 4;
$custompoints['absent'] = $this->readData('Int', $swshandle) / 4;
if($applycustompoints) $this->Tournament->CustomPoints = $custompoints;
$this->Tournament->CustomPoints['win'] = $this->readData('Int', $swshandle) / 4;
$this->Tournament->CustomPoints['draw'] = $this->readData('Int', $swshandle) / 4;
$this->Tournament->CustomPoints['loss'] = $this->readData('Int', $swshandle) / 4;
$this->Tournament->CustomPoints['bye'] = $this->readData('Int', $swshandle) / 4;
$this->Tournament->CustomPoints['absent'] = $this->readData('Int', $swshandle) / 4;
$this->Tournament->EloUsed = $this->readData('Int', $swshandle);
$this->Tournament->TournoiStd = $this->readData('Int', $swshandle);
$this->Tournament->TbPersonel = $this->readData('Int', $swshandle);