From d3c403708c0e2549c308104d99b9cb7d5681f808 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 22:07:01 +0000 Subject: [PATCH 1/4] Update laravel/pint requirement from ^1.1 to ^1.2 Updates the requirements on laravel/pint to permit the latest version. --- updated-dependencies: - dependency-name: laravel/pint dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c0931cb0..75832d5d 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "haydenpierce/class-finder": ">= 0.4.3", "infection/infection": "^0.26", "phpstan/phpstan": "^1.8", - "laravel/pint": "^1.1" + "laravel/pint": "^1.2" }, "suggest": { "ext-mbstring": "If you need to deal with Debian vote format", From a7a27ab18f0ba53b183cc330ed39040a1a21ccf2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Sep 2022 21:44:03 +0000 Subject: [PATCH 2/4] Update haydenpierce/class-finder requirement from >= 0.4.3 to >= 0.4.4 Updates the requirements on [haydenpierce/class-finder](https://gitlab.com/hpierce1102/ClassFinder) to permit the latest version. - [Release notes](https://gitlab.com/hpierce1102/ClassFinder/tags) - [Commits](https://gitlab.com/hpierce1102/ClassFinder/compare/0.4.3...0.4.4) --- updated-dependencies: - dependency-name: haydenpierce/class-finder dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 75832d5d..f80f2eaa 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ "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.2" From 08feec4070049f60f5d95635972047c8e12c0c21 Mon Sep 17 00:00:00 2001 From: Julien Boudry Date: Sat, 29 Oct 2022 07:55:27 +0200 Subject: [PATCH 3/4] Pintify --- Dev/bugs/JitBug.php | 1 - __CondorcetAutoload.php | 1 - src/Algo/Methods/RankedPairs/RankedPairs_Core.php | 1 - src/Console/Commands/ElectionCommand.php | 1 - .../DataHandlerDrivers/PdoDriver/PdoHandlerDriver.php | 1 - 5 files changed, 5 deletions(-) diff --git a/Dev/bugs/JitBug.php b/Dev/bugs/JitBug.php index db56d1c2..1f8fd9e9 100644 --- a/Dev/bugs/JitBug.php +++ b/Dev/bugs/JitBug.php @@ -28,7 +28,6 @@ require_once __DIR__.'/../../__CondorcetAutoload.php'; for ($i=1; $i <= 4000; $i++) { - # With Condorcet $election = new Election; diff --git a/__CondorcetAutoload.php b/__CondorcetAutoload.php index 4a521e4d..cf54385c 100644 --- a/__CondorcetAutoload.php +++ b/__CondorcetAutoload.php @@ -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\\'; diff --git a/src/Algo/Methods/RankedPairs/RankedPairs_Core.php b/src/Algo/Methods/RankedPairs/RankedPairs_Core.php index 9ab325b8..990eca21 100644 --- a/src/Algo/Methods/RankedPairs/RankedPairs_Core.php +++ b/src/Algo/Methods/RankedPairs/RankedPairs_Core.php @@ -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 diff --git a/src/Console/Commands/ElectionCommand.php b/src/Console/Commands/ElectionCommand.php index 9fa42fba..b4ddf19b 100644 --- a/src/Console/Commands/ElectionCommand.php +++ b/src/Console/Commands/ElectionCommand.php @@ -778,7 +778,6 @@ protected function useDataHandler(InputInterface $input): ?\Closure $callBack = function (int $inserted_votes_count): bool { if ($inserted_votes_count > $this->maxVotesInMemory) { - /** * @infection-ignore-all */ diff --git a/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriver.php b/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriver.php index f1993070..3e24df52 100644 --- a/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriver.php +++ b/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriver.php @@ -141,7 +141,6 @@ protected function initTransaction(): void public function closeTransaction(): void { if ($this->transaction === true) { - /** * @infection-ignore-all */ From 2d5acd7bb7df8e34ce1da9a8f6aa31d08045e5c7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Nov 2022 21:29:30 +0000 Subject: [PATCH 4/4] Update phpstan/phpstan requirement from ^1.8 to ^1.9 Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version. - [Release notes](https://github.com/phpstan/phpstan/releases) - [Changelog](https://github.com/phpstan/phpstan/blob/1.9.x/CHANGELOG.md) - [Commits](https://github.com/phpstan/phpstan/compare/1.8.0...1.9.1) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f80f2eaa..c5230120 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "phploc/phploc": "dev-main", "haydenpierce/class-finder": ">= 0.4.4", "infection/infection": "^0.26", - "phpstan/phpstan": "^1.8", + "phpstan/phpstan": "^1.9", "laravel/pint": "^1.2" }, "suggest": {