Skip to content

Commit

Permalink
Pintify
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-boudry committed Apr 29, 2024
1 parent 03b11e8 commit 059ddd5
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 18 deletions.
1 change: 0 additions & 1 deletion Dev/migrate_yamlDoc_to_attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

declare(strict_types=1);

use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{PublicAPI};
use Symfony\Component\Yaml\Yaml;

require_once __DIR__ . str_replace('/', \DIRECTORY_SEPARATOR, '/../vendor/../vendor/autoload.php');
Expand Down
1 change: 0 additions & 1 deletion src/Algo/Pairwise/FilteredPairwise.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace CondorcetPHP\Condorcet\Algo\Pairwise;

use CondorcetPHP\Condorcet\Election;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Description, FunctionReturn, PublicAPI, Related};
use CondorcetPHP\Condorcet\Utils\VoteUtil;

class FilteredPairwise extends Pairwise
Expand Down
2 changes: 1 addition & 1 deletion src/Algo/Tools/StvQuotas.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace CondorcetPHP\Condorcet\Algo\Tools;

use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, PublicAPI};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, PublicAPI};
use CondorcetPHP\Condorcet\Throwable\StvQuotaNotImplementedException;

// Generic for Algorithms
Expand Down
2 changes: 1 addition & 1 deletion src/Candidate.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
use CondorcetPHP\Condorcet\Throwable\{CandidateExistsException, CandidateInvalidNameException};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Relations\Linkable;

class Candidate implements \Stringable
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/ElectionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ protected function displayVotesCount(OutputInterface $output): void
($votesStatsTable = new Table($output))
->setHeaderTitle('Stats - votes registration')
->setHeaders(['Stats', 'Value'])
->setColumnStyle(0, (new Tablestyle)->setPadType(\STR_PAD_LEFT))
->setColumnStyle(0, (new TableStyle)->setPadType(\STR_PAD_LEFT))
->setStyle($this->io->MainTableStyle)
;

Expand Down
2 changes: 0 additions & 2 deletions src/Console/Helper/CommandInputHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace CondorcetPHP\Condorcet\Console\Helper;

use CondorcetPHP\Condorcet\{Condorcet, Election, Result};

abstract class CommandInputHelper
{
public static function getFilePath(string $path): ?string
Expand Down
2 changes: 1 addition & 1 deletion src/Election.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use CondorcetPHP\Condorcet\Algo\Pairwise\Pairwise;
use CondorcetPHP\Condorcet\Throwable\{DataHandlerException, ElectionObjectVersionMismatchException, NoCandidatesException, NoSeatsException, ResultRequestedWithoutVotesException, VoteConstraintException};
use CondorcetPHP\Condorcet\ElectionProcess\{CandidatesProcess, ElectionState, ResultsProcess, VotesProcess};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\DataManager\VotesManager;
use CondorcetPHP\Condorcet\DataManager\DataHandlerDrivers\DataHandlerDriverInterface;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
Expand Down
2 changes: 1 addition & 1 deletion src/ElectionProcess/CandidatesProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use CondorcetPHP\Condorcet\Candidate;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
use CondorcetPHP\Condorcet\Throwable\{CandidateDoesNotExistException, CandidateExistsException, VoteMaxNumberReachedException, VotingHasStartedException};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Utils\CondorcetUtil;

// Manage Candidates for Election class
Expand Down
2 changes: 1 addition & 1 deletion src/ElectionProcess/ResultsProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use CondorcetPHP\Condorcet\Algo\Pairwise\{FilteredPairwise, Pairwise};
use CondorcetPHP\Condorcet\Algo\StatsVerbosity;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Throwable\AlgorithmException;
use CondorcetPHP\Condorcet\Timer\Chrono as Timer_Chrono;
use Random\Randomizer;
Expand Down
2 changes: 1 addition & 1 deletion src/ElectionProcess/VotesProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use CondorcetPHP\Condorcet\Vote;
use CondorcetPHP\Condorcet\Throwable\{FileDoesNotExistException, ParseVotesMaxNumberReachedException, VoteException, VoteInvalidFormatException, VoteMaxNumberReachedException};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\DataManager\{VotesManager, VotesManagerEvent};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
use CondorcetPHP\Condorcet\Utils\{CondorcetUtil, VoteEntryParser, VoteUtil};
Expand Down
4 changes: 2 additions & 2 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace CondorcetPHP\Condorcet;

use CondorcetPHP\Condorcet\Algo\{Pairwise, StatsVerbosity};
use CondorcetPHP\Condorcet\Algo\{StatsVerbosity};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Utils\{CondorcetUtil, VoteUtil};
use CondorcetPHP\Condorcet\Throwable\ResultException;

Expand Down
2 changes: 0 additions & 2 deletions src/Tools/Converters/Interface/ConverterExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace CondorcetPHP\Condorcet\Tools\Converters\Interface;

use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Description, FunctionParameter, FunctionReturn, PublicAPI};

interface ConverterExport
{
# public static createFromElection(...): ?string
Expand Down
1 change: 0 additions & 1 deletion src/Tools/Converters/Interface/ConverterImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace CondorcetPHP\Condorcet\Tools\Converters\Interface;

use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Description, FunctionParameter, FunctionReturn, PublicAPI};
use CondorcetPHP\Condorcet\Election;

interface ConverterImport
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/Randomizers/VoteRandomizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace CondorcetPHP\Condorcet\Tools\Randomizers;

use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Description, FunctionParameter, FunctionReturn, PublicAPI};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Description, FunctionReturn, PublicAPI};
use CondorcetPHP\Condorcet\Vote;

class VoteRandomizer extends ArrayRandomizer
Expand Down
2 changes: 1 addition & 1 deletion src/Vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use ArrayAccess;
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\BookLibrary;
use CondorcetPHP\Condorcet\Throwable\{CandidateDoesNotExistException, VoteException, VoteInvalidFormatException, VoteNotLinkedException};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, Example, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Dev\CondorcetDocumentationGenerator\CondorcetDocAttributes\{Book, Description, FunctionParameter, FunctionReturn, InternalModulesAPI, PublicAPI, Related, Throws};
use CondorcetPHP\Condorcet\Relations\Linkable;
use CondorcetPHP\Condorcet\Utils\{CondorcetUtil, VoteEntryParser, VoteUtil};

Expand Down

0 comments on commit 059ddd5

Please sign in to comment.