@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | /** |
| 116 | 116 | * Check if any candidates have reached the quota and can be elected. |
| 117 | 117 | * |
| 118 | - * @param array $candidates Array of active candidates to check |
|
| 118 | + * @param Candidate[] $candidates Array of active candidates to check |
|
| 119 | 119 | * |
| 120 | 120 | * @return bool Whether any candidates were changed to elected |
| 121 | 121 | */ |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | /** |
| 334 | 334 | * Check if ballot is valid. |
| 335 | 335 | * |
| 336 | - * @param Ballot $Ballot Ballot to test |
|
| 336 | + * @param Ballot $ballot Ballot to test |
|
| 337 | 337 | * |
| 338 | 338 | * @return bool True if valid, false if invalid |
| 339 | 339 | */ |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tests\Michaelc\Voting; |
| 4 | 4 | |
| 5 | -use Michaelc\Voting\STV\Election; |
|
| 6 | -use Michaelc\Voting\STV\Candidate; |
|
| 7 | 5 | use Michaelc\Voting\STV\Ballot; |
| 6 | +use Michaelc\Voting\STV\Candidate; |
|
| 7 | +use Michaelc\Voting\STV\Election; |
|
| 8 | 8 | use Michaelc\Voting\STV\VoteHandler; |
| 9 | 9 | use Psr\Log\LoggerInterface as Logger; |
| 10 | 10 | |