Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Jan 27, 2025
1 parent d1fd37f commit 1ccefb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Variant/AbstractPiece.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function isEmpty(array $line): bool
public function attacked(): array
{
$pieces = [];
foreach ($sqs = $this->moveSqs() as $sq) {
foreach ($this->moveSqs() as $sq) {
if ($piece = $this->board->pieceBySq($sq)) {
if ($piece->color === $this->oppColor()) {
$pieces[] = $piece;
Expand Down

0 comments on commit 1ccefb8

Please sign in to comment.