Merge branch 'meta/fixes' into develop

This commit is contained in:
Jeroen De Meerleer 2019-12-26 20:34:04 +01:00
commit 018b77abb7
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,9 @@
{
"name": "jeroened/libpairtwo",
"type": "library",
"description": "A library written in PHP that reads files which are saved using common pairing applications",
"description": "Export chess tournaments directly on the web",
"keywords": ["chess", "pairing"],
"license": "MIT",
"license": "AGPL-3.0-or-later",
"authors": [
{
"name": "Jeroen De Meerleer",
@ -14,12 +14,11 @@
],
"require": {
"php": "^7.1",
"myclabs/php-enum": "^1.6",
"myclabs/php-enum": "^1.7",
"ext-iconv": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.0",
"friendsofphp/php-cs-fixer": "^2.0"
"friendsofphp/php-cs-fixer": "^2.16"
},
"autoload": {
"psr-4": {

View File

@ -348,7 +348,8 @@ class Player
*
* @return Player[]
*/
private function opponents() {
private function opponents()
{
$return = array();
foreach ($this->Pairings as $pairing) {
if (!empty($pairing->Opponent)) {

View File

@ -700,10 +700,10 @@ class Tournament
}
}
}
if($interestingplayers) {
if ($interestingplayers) {
$allintplayers = $interestingplayers;
$allintplayers[] = $player;
foreach($allintplayers as $player) {
foreach ($allintplayers as $player) {
if (!$player->hasPlayedAllPlayersOfArray($allintplayers)) {
return 0;
}