diff --git a/composer.json b/composer.json index b253c0d..adde7bd 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/Player.php b/src/Player.php index f544fe7..3184228 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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)) { diff --git a/src/Tournament.php b/src/Tournament.php index 5e3d76b..5997eb3 100644 --- a/src/Tournament.php +++ b/src/Tournament.php @@ -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; }