football-betting /
symfony4
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace App\GameRating\Business; |
||
| 5 | |||
| 6 | |||
| 7 | use App\GameRating\Business\UserPoint\UserRatingInterface; |
||
| 8 | use App\GameRating\Business\UserPoint\UserScoreProviderInterface; |
||
| 9 | use App\GameRating\Persistence\DataProvider\Result; |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | class GameRatingFacade implements GameRatingFacadeInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var UserRatingInterface |
||
| 16 | */ |
||
| 17 | private $userRating; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var UserScoreProviderInterface |
||
| 21 | */ |
||
| 22 | private $userScoreProvider; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param UserRatingInterface $userRating |
||
| 26 | * @param UserScoreProviderInterface $userScoreProvider |
||
| 27 | */ |
||
| 28 | public function __construct( |
||
| 29 | UserRatingInterface $userRating, |
||
| 30 | UserScoreProviderInterface $userScoreProvider |
||
| 31 | ) |
||
| 32 | { |
||
| 33 | $this->userRating = $userRating; |
||
| 34 | $this->userScoreProvider = $userScoreProvider; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * @return \App\GameRating\Persistence\DataProvider\UserScoreWithPosition[]|array |
||
| 40 | */ |
||
| 41 | public function getUserScoreWithPosition() : array |
||
| 42 | { |
||
| 43 | return $this->userRating->sortUserByScore( |
||
| 44 | $this->userScoreProvider->get() |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | } |
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