mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-23 06:56:58 +01:00
META: Documentation fixes
This commit is contained in:
parent
ac28446e58
commit
de030fd101
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "jeroened/libpairtwo",
|
"name": "jeroened/libpairtwo",
|
||||||
"type": "library",
|
"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"],
|
"keywords": ["chess", "pairing"],
|
||||||
"license": "MIT",
|
"license": "AGPL-3.0-or-later",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Jeroen De Meerleer",
|
"name": "Jeroen De Meerleer",
|
||||||
@ -14,12 +14,11 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1",
|
"php": "^7.1",
|
||||||
"myclabs/php-enum": "^1.6",
|
"myclabs/php-enum": "^1.7",
|
||||||
"ext-iconv": "*"
|
"ext-iconv": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^7.0",
|
"friendsofphp/php-cs-fixer": "^2.16"
|
||||||
"friendsofphp/php-cs-fixer": "^2.0"
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
@ -348,7 +348,8 @@ class Player
|
|||||||
*
|
*
|
||||||
* @return Player[]
|
* @return Player[]
|
||||||
*/
|
*/
|
||||||
private function opponents() {
|
private function opponents()
|
||||||
|
{
|
||||||
$return = array();
|
$return = array();
|
||||||
foreach ($this->Pairings as $pairing) {
|
foreach ($this->Pairings as $pairing) {
|
||||||
if (!empty($pairing->Opponent)) {
|
if (!empty($pairing->Opponent)) {
|
||||||
|
@ -700,10 +700,10 @@ class Tournament
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($interestingplayers) {
|
if ($interestingplayers) {
|
||||||
$allintplayers = $interestingplayers;
|
$allintplayers = $interestingplayers;
|
||||||
$allintplayers[] = $player;
|
$allintplayers[] = $player;
|
||||||
foreach($allintplayers as $player) {
|
foreach ($allintplayers as $player) {
|
||||||
if (!$player->hasPlayedAllPlayersOfArray($allintplayers)) {
|
if (!$player->hasPlayedAllPlayersOfArray($allintplayers)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user