Refactor 'absent' to 'presence' in Swar6 reader

The key for the custom points array has been changed from 'absent' to 'presence'. This change is made in the Swar6 class, specifically within the method that reads data from a handle. The value associated with this key remains unchanged.
This commit is contained in:
Jeroen De Meerleer 2024-09-19 11:51:17 +02:00
parent ec0dd2148e
commit 4cee5fe116
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -282,7 +282,7 @@ class Swar6 implements ReaderInterface
$custompoints['draw'] = $this->readData('Int', $swshandle) / 4; $custompoints['draw'] = $this->readData('Int', $swshandle) / 4;
$custompoints['loss'] = $this->readData('Int', $swshandle) / 4; $custompoints['loss'] = $this->readData('Int', $swshandle) / 4;
$custompoints['bye'] = $this->readData('Int', $swshandle) / 4; $custompoints['bye'] = $this->readData('Int', $swshandle) / 4;
$custompoints['absent'] = $this->readData('Int', $swshandle) / 4; $custompoints['presence'] = $this->readData('Int', $swshandle) / 4;
if($applycustompoints) $this->Tournament->CustomPoints = $custompoints; if($applycustompoints) $this->Tournament->CustomPoints = $custompoints;
$this->Tournament->EloUsed = $this->readData('Int', $swshandle); $this->Tournament->EloUsed = $this->readData('Int', $swshandle);
$this->Tournament->TournoiStd = $this->readData('Int', $swshandle); $this->Tournament->TournoiStd = $this->readData('Int', $swshandle);