Skip to content

Commit b4a957c

Browse files
committed
Remove unnecessary extract
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent 982412d commit b4a957c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

resources/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
<main>
4646
<h1><?= htmlspecialchars((string) $title, ENT_QUOTES, 'UTF-8') ?></h1>
4747
<ul>
48-
<?php foreach ($links as $name => $url): ?>
48+
<?php foreach ($links as $name => $url): ?>
4949
<li><a href="<?= htmlspecialchars((string) $url, ENT_QUOTES, 'UTF-8') ?>"><?= htmlspecialchars((string) $name, ENT_QUOTES, 'UTF-8') ?></a></li>
50-
<?php endforeach; ?>
50+
<?php endforeach; ?>
5151
</ul>
5252
</main>
5353
</body>

src/Command/ReportsCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ private function generateFrontpage(): void
9595
private function renderTemplate(string $title, array $links): string
9696
{
9797
ob_start();
98-
extract([
99-
'title' => $title,
100-
'links' => $links,
101-
]);
10298
include $this->getConfigFile('resources/index.php');
10399

104100
return ob_get_clean();

0 commit comments

Comments
 (0)