Skip to content

Commit

Permalink
Api: Fix generating valid notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Jan 22, 2020
1 parent a6a17fb commit 9e3a351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function run(string $path): void
header('Content-Type: ' . self::$formatHeaders[$routeParser['format']]);
}

echo 'Automatically generated ' . date('Y-m-d H:i:s') . "\n\n";
echo '/* Automatically generated ' . date('Y-m-d H:i:s') . ' */' . "\n\n";

foreach ($data[$routeParser['format']] ?? [] as $file) {
echo '/* ' . $file . ' */' . "\n";
Expand Down Expand Up @@ -114,4 +114,4 @@ private function getData(?string $route = null): array
: [];
}

}
}

0 comments on commit 9e3a351

Please sign in to comment.