Skip to content

Commit

Permalink
Merge branch 'master' into dev-4.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/Console/Commands/ElectionCommand.php
  • Loading branch information
julien-boudry committed Nov 17, 2022
2 parents 270c3d0 + 195b27f commit 55be62d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion Dev/bugs/JitBug.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
require_once __DIR__.'/../../__CondorcetAutoload.php';

for ($i=1; $i <= 4000; $i++) {

# With Condorcet
$election = new Election;

Expand Down
1 change: 0 additions & 1 deletion __CondorcetAutoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

// Self Autoload function coming after and as a fallback of composer or other framework PSR autoload implementation. Composer or framework autoload will alway be will be preferred to that custom function.
spl_autoload_register(static function (string $class): void {

// project-specific namespace prefix
$prefix = 'CondorcetPHP\Condorcet\\';

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"phpbench/phpbench": "*",
"phpunit/phpunit": "^9 || ^10",
"phploc/phploc": "dev-main",
"haydenpierce/class-finder": ">= 0.4.3",
"haydenpierce/class-finder": ">= 0.4.4",
"infection/infection": "^0.26",
"phpstan/phpstan": "^1.8",
"laravel/pint": "^1.1"
"phpstan/phpstan": "^1.9",
"laravel/pint": "^1.2"
},
"suggest": {
"ext-mbstring": "If you need to deal with Debian vote format",
Expand Down
1 change: 0 additions & 1 deletion src/Algo/Methods/RankedPairs/RankedPairs_Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ protected function pairwiseSort(): array
foreach ($this->getElection()->getPairwise() as $candidate_key => $candidate_value) {
foreach ($candidate_value['win'] as $challenger_key => $challenger_value) {
if ($challenger_value > $candidate_value['lose'][$challenger_key]) {

// Victory
$pairs[$i]['from'] = $candidate_key;
// Defeat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ protected function initTransaction(): void
public function closeTransaction(): void
{
if ($this->transaction === true) {

/**
* @infection-ignore-all
*/
Expand Down

0 comments on commit 55be62d

Please sign in to comment.