Passed
Push — develop ( 9adc72...0701e3 )
by BENARD
12:13 queued 05:58
created

GameManager::setProofVideoOnly()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
c 0
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VideoGamesRecords\CoreBundle\Manager;
6
7
use Doctrine\DBAL\Exception;
8
use VideoGamesRecords\CoreBundle\Entity\Game;
9
use VideoGamesRecords\CoreBundle\Repository\GameRepository;
10
11
class GameManager
12
{
13
    private GameRepository $gameRepository;
14
15
    public function __construct(GameRepository $gameRepository)
16
    {
17
        $this->gameRepository = $gameRepository;
18
    }
19
20
    /**
21
     * @param Game $game
22
     */
23
    public function maj(Game $game): void
24
    {
25
        $this->gameRepository->maj($game);
26
    }
27
28
    /**
29
     * @param Game $game
30
     */
31
    public function copy(Game $game): void
32
    {
33
        $this->gameRepository->copy($game);
34
    }
35
36
    public function setProofVideoOnly(Game $game): void
0 ignored issues
show
Unused Code introduced by
The parameter $game is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

36
    public function setProofVideoOnly(/** @scrutinizer ignore-unused */ Game $game): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
    {
38
39
    }
40
}
41