summaryrefslogtreecommitdiff
path: root/src/Controllers/EntriesController.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-03-06 01:07:59 +0100
committerDaniel Weipert <code@drogueronin.de>2022-03-06 01:07:59 +0100
commitad83d1dafac62bb28fda004f86129319a5c3e2ca (patch)
treedcf119ae4159dcd13c5c3651e54b92e3f7cd4f80 /src/Controllers/EntriesController.php
parentb2a86c7df7d5a473e80034832a01b21444fa50e6 (diff)
Refactor fixes
Diffstat (limited to 'src/Controllers/EntriesController.php')
-rw-r--r--src/Controllers/EntriesController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Controllers/EntriesController.php b/src/Controllers/EntriesController.php
index 13aa8e0..801fe7b 100644
--- a/src/Controllers/EntriesController.php
+++ b/src/Controllers/EntriesController.php
@@ -6,7 +6,7 @@ use Yosymfony\Toml\Toml;
class EntriesController
{
- public function getEntries()
+ public function getEntries(string $formPath): array
{
/**@var Utilities $utilities*/
global $utilities;
@@ -65,7 +65,7 @@ class EntriesController
$entriesForDay = $utilities->scandir($dayPath);
foreach ($entriesForDay as $entryForDay) {
- $entry = Toml::parseFile("$dayPath/$entryForDay");
+ $entry = Toml::parseFile($entryForDay);
if (isset($_GET['flat'])) {
$entries[] = $entry;
} else {