Skip to content

Commit

Permalink
Improvements thanks to Scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Sep 20, 2021
1 parent b1f6fa8 commit 36b4772
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions classes/Planet.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class Planet
{
public static function getOwner(\PDO $pdo_db, int $planet_id, array $owner_info): bool
public static function getOwner(\PDO $pdo_db, int $planet_id, array $owner_info): ?array
{
$owner_info = null;
if ($planet_id > 0)
Expand All @@ -42,11 +42,10 @@ public static function getOwner(\PDO $pdo_db, int $planet_id, array $owner_info)
if ($result !== false)
{
$owner_info = (array) $stmt->fetch(\PDO::FETCH_ASSOC);
return true;
}
}

return false;
return $owner_info;
}

public static function bombing(
Expand Down

0 comments on commit 36b4772

Please sign in to comment.