@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @param array $cards |
25 | 25 | * |
26 | - * @return boolean |
|
26 | + * @return boolean|null |
|
27 | 27 | */ |
28 | 28 | public function areValid(array $cards) |
29 | 29 | { |
@@ -56,7 +56,6 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * Look for card duplication |
58 | 58 | * |
59 | - * @param array $flop |
|
60 | 59 | * |
61 | 60 | * @return boolean |
62 | 61 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function areValid(array $cards) |
29 | 29 | { |
30 | 30 | if (count($cards) != 7) { |
31 | - throw new \Exception("It's Texas Holdem! You need 7 cards!"); |
|
31 | + throw new \Exception("It's Texas Holdem! You need 7 cards!"); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | if ($this->areCardsFormatValid($cards) && $this->hasNoCardDuplication($cards)) { |
@@ -499,6 +499,7 @@ |
||
499 | 499 | * @param string $typeOfPair |
500 | 500 | * @param int $nbCards |
501 | 501 | * @param array $cards |
502 | + * @param integer $handRank |
|
502 | 503 | * |
503 | 504 | * @return array|bool |
504 | 505 | */ |
@@ -563,7 +563,7 @@ |
||
563 | 563 | */ |
564 | 564 | private function isHighCard(array $cards) |
565 | 565 | { |
566 | - $response[] = current($cards); |
|
566 | + $response[] = current($cards); |
|
567 | 567 | |
568 | 568 | return $this->getResponse('High card', 1, $this->getRank($response), $response); |
569 | 569 | } |
@@ -18,8 +18,8 @@ |
||
18 | 18 | $cardValidator = $this->getMock('Bourdeau\Bundle\HandEvaluatorBundle\HandEvaluator\CardValidator'); |
19 | 19 | |
20 | 20 | $cardValidator->expects($this->any()) |
21 | - ->method('areValid') |
|
22 | - ->willReturn(true); |
|
21 | + ->method('areValid') |
|
22 | + ->willReturn(true); |
|
23 | 23 | |
24 | 24 | $this->handFinder = new HandFinder($cardValidator); |
25 | 25 | } |