Skip to content

Commit

Permalink
Pintify
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-boudry committed Jun 14, 2024
1 parent e473cac commit ebfa6a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tools/Converters/CEF/CondorcetElectionFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function createFromString(string $input): self
$file = new SplTempFileObject;
$file->fwrite($input);

return new self ($file);
return new self($file);
}

public static function boolParser(string $parse): bool
Expand Down
2 changes: 1 addition & 1 deletion tests/src/CondorcetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected function makeRanking(): void
{
$election = $this->getElection();

$this->Result = $this->createResult(array_slice(array_map(fn(Candidate $e): int => $election->getCandidateKey($e), $this->getElection()->getCandidatesList()), 0, 3));
$this->Result = $this->createResult(\array_slice(array_map(fn(Candidate $e): int => $election->getCandidateKey($e), $this->getElection()->getCandidatesList()), 0, 3));
}
}

Expand Down

0 comments on commit ebfa6a2

Please sign in to comment.