Completed
Branch master (870c88)
by Pierre-Henri
06:07
created
HandEvaluator/CardValidator.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
56 56
     /**
57 57
      * Look for card duplication
58 58
      *
59
-     * @param  array  $flop
60 59
      *
61 60
      * @return boolean
62 61
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
HandEvaluator/HandFinder.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -499,6 +499,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -563,7 +563,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/HandEvaluator/HandFinderTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.