Skip to content

Commit

Permalink
Fix PSR12 again
Browse files Browse the repository at this point in the history
  • Loading branch information
alu- committed Dec 2, 2023
1 parent d35d0a8 commit 2bc3b60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Alu/AdventOfCode/Year2015/Day14/Race/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ public function winner(): Reindeer
return $reindeer->getDistanceTravelled() > $carry->getDistanceTravelled() ? $reindeer : $carry;
}, $this->participants[0]);
}
}
}
2 changes: 1 addition & 1 deletion src/Alu/AdventOfCode/Year2015/Day14/Race/PointManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ public function getPoints(): array
{
return $this->points;
}
}
}
5 changes: 2 additions & 3 deletions src/Alu/AdventOfCode/Year2015/Day14/Race/Reindeer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
public int $distance,
public int $duration,
public int $restDuration
)
{
) {
$this->resting = false;
$this->restTime = 0;
$this->stamina = $this->duration;
Expand Down Expand Up @@ -87,4 +86,4 @@ private function needsRest(): bool
{
return $this->stamina === 0;
}
}
}

0 comments on commit 2bc3b60

Please sign in to comment.