Skip to content

Commit

Permalink
Code style refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lanedirt committed Apr 28, 2024
1 parent bbd634c commit bfb2a5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Services/PlanetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,11 @@ public function energy(): Resource
*
* @param Resources $resources
* Array with resources to deduct.
* @param bool $save_planet
*
* @throws Exception
*/
public function deductResources(Resources $resources, $save_planet = true): void
public function deductResources(Resources $resources, bool $save_planet = true): void
{
// Sanity check that this planet has enough resources, if not throw
// exception.
Expand Down
2 changes: 1 addition & 1 deletion tests/AccountTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ protected function playerSetAllMessagesRead(): void
*
* @param string $tab
* @param string $subtab
* @param array $must_contain
* @param array<int,string> $must_contain
* @return void
*/
protected function assertMessageReceivedAndContains(string $tab, string $subtab, array $must_contain) : void {
Expand Down

0 comments on commit bfb2a5c

Please sign in to comment.