Improve some type safety

This commit is contained in:
Alex Cabal 2020-06-24 19:15:05 -05:00
parent cae117951b
commit 905aef22fa
6 changed files with 19 additions and 2 deletions

View file

@ -1,4 +1,10 @@
<?
use function Safe\file_get_contents;
use function Safe\getopt;
use function Safe\krsort;
use function Safe\preg_replace;
use function Safe\strtotime;
$longopts = array("webroot:", "weburl:");
$options = getopt("", $longopts);
$webRoot = $options["webroot"] ?? "/standardebooks.org/web";