More rector rules
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Jens True 2024-02-21 14:10:01 +00:00
parent c781540aa6
commit 61af342cfa
2 changed files with 5 additions and 2 deletions

@ -302,6 +302,7 @@ class Matrix
if ($isEven) { if ($isEven) {
return $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant(); return $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant();
} }
return -1.0 * $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant(); return -1.0 * $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant();
} }

@ -9,12 +9,14 @@ class Team extends RatingContainer
public function __construct(Player $player = NULL, Rating $rating = NULL) public function __construct(Player $player = NULL, Rating $rating = NULL)
{ {
parent::__construct(); parent::__construct();
if (!$player instanceof \DNW\Skills\Player) { if (!$player instanceof layer) {
return; return;
} }
if (!$rating instanceof \DNW\Skills\Rating) {
if (!$rating instanceof Rating) {
return; return;
} }
$this->addPlayer($player, $rating); $this->addPlayer($player, $rating);
} }