We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -53,9 +53,9 @@ |
||
53 | 53 | |
54 | 54 | public function isAttacking(array &$board, array &$hasMoved, $king, $x = -1, $y = -1) { |
55 | 55 | $moves = $this->getPossibleMoves($board, $hasMoved, null, true); |
56 | - foreach($moves as $move) { |
|
56 | + foreach ($moves as $move) { |
|
57 | 57 | $p = $board[$move[1]][$move[0]]; |
58 | - if(($move[0] == $x && $move[1] == $y) || ($king === true && $p != null && $p->pieceID == self::KING && $this->colour != $p->colour)) { |
|
58 | + if (($move[0] == $x && $move[1] == $y) || ($king === true && $p != null && $p->pieceID == self::KING && $this->colour != $p->colour)) { |
|
59 | 59 | return true; |
60 | 60 | } |
61 | 61 | } |