mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Removed unnecessary curly brackets in string interpolation, which are deprecated in PHP 8.2
This commit is contained in:
parent
5f61e096f9
commit
6d6a69e1dd
2 changed files with 4 additions and 4 deletions
|
@ -65,12 +65,12 @@ class ShowEventLogCommand extends Command
|
|||
$max_page = (int) ceil($total_count / $limit);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
$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;
|
||||
while ($continue && $page <= $max_page) {
|
||||
|
@ -105,7 +105,7 @@ class ShowEventLogCommand extends Command
|
|||
$entries = $this->repo->getLogsOrderedByTimestamp($sorting, $limit, $offset);
|
||||
|
||||
$table = new Table($output);
|
||||
$table->setHeaderTitle("Page ${page} / ${max_page}");
|
||||
$table->setHeaderTitle("Page $page / $max_page");
|
||||
$headers = ['ID', 'Timestamp', 'Type', 'User', 'Target Type', 'Target'];
|
||||
if ($showExtra) {
|
||||
$headers[] = 'Extra data';
|
||||
|
|
|
@ -129,7 +129,7 @@ class UserAvatarHelper
|
|||
$url = 'https://www.gravatar.com/avatar/';
|
||||
$url .= md5(strtolower(trim($email)));
|
||||
|
||||
return $url . "?s=${s}&d=${d}&r=${r}";
|
||||
return $url . "?s=$s&d=$d&r=$r";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue