| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Lines | 7 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | View Code Duplication | public function testTraitDeckDeckSize() |
|
|
|
|||
| 32 | { |
||
| 33 | $pokersquares = new PokerSquares(); |
||
| 34 | |||
| 35 | $exp = $pokersquares->deckSize(['<div class="card rank08C">8 <br/> ♣</div>','<div class="card rank09C">9 <br/> ♣</div>',]); |
||
| 36 | $this->assertEquals($exp, 2); |
||
| 37 | } |
||
| 38 | |||
| 48 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.