KarlComSe /
mvc-report
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Model; |
||
| 4 | |||
| 5 | use Random\Randomizer; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | class DeckShuffler |
||
| 8 | { |
||
| 9 | private Randomizer $randomizer; |
||
| 10 | |||
| 11 | public function __construct(Randomizer $randomizer) |
||
| 12 | { |
||
| 13 | $this->randomizer = $randomizer; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function shuffle(DeckOfCards $deck): void |
||
| 17 | { |
||
| 18 | $cards = $deck->getDeck(); |
||
| 19 | $shuffledCards = $this->randomizer->shuffleArray($cards); |
||
| 20 | $deck->setDeck($shuffledCards); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths