Removed unnecessary curly brackets in string interpolation, which are deprecated in PHP 8.2

This commit is contained in:
Jan Böhmer 2023-10-14 20:31:04 +02:00
parent 5f61e096f9
commit 6d6a69e1dd
2 changed files with 4 additions and 4 deletions

View file

@ -65,12 +65,12 @@ class ShowEventLogCommand extends Command
$max_page = (int) ceil($total_count / $limit); $max_page = (int) ceil($total_count / $limit);
if ($page > $max_page && $max_page > 0) { if ($page > $max_page && $max_page > 0) {
$io->error("There is no page ${page}! The maximum page is ${max_page}."); $io->error("There is no page $page! The maximum page is $max_page.");
return Command::FAILURE; return Command::FAILURE;
} }
$io->note("There are a total of ${total_count} log entries in the DB."); $io->note("There are a total of $total_count log entries in the DB.");
$continue = true; $continue = true;
while ($continue && $page <= $max_page) { while ($continue && $page <= $max_page) {
@ -105,7 +105,7 @@ class ShowEventLogCommand extends Command
$entries = $this->repo->getLogsOrderedByTimestamp($sorting, $limit, $offset); $entries = $this->repo->getLogsOrderedByTimestamp($sorting, $limit, $offset);
$table = new Table($output); $table = new Table($output);
$table->setHeaderTitle("Page ${page} / ${max_page}"); $table->setHeaderTitle("Page $page / $max_page");
$headers = ['ID', 'Timestamp', 'Type', 'User', 'Target Type', 'Target']; $headers = ['ID', 'Timestamp', 'Type', 'User', 'Target Type', 'Target'];
if ($showExtra) { if ($showExtra) {
$headers[] = 'Extra data'; $headers[] = 'Extra data';

View file

@ -129,7 +129,7 @@ class UserAvatarHelper
$url = 'https://www.gravatar.com/avatar/'; $url = 'https://www.gravatar.com/avatar/';
$url .= md5(strtolower(trim($email))); $url .= md5(strtolower(trim($email)));
return $url . "?s=${s}&d=${d}&r=${r}"; return $url . "?s=$s&d=$d&r=$r";
} }
/** /**