diff options
author | Jonas Kohl <gitlab@jonaskohl.de> | 2024-07-19 16:30:46 +0200 |
---|---|---|
committer | Jonas Kohl <gitlab@jonaskohl.de> | 2024-07-19 16:30:46 +0200 |
commit | 551fe367342f4c3d4c859f58054c6076b3fe4d69 (patch) | |
tree | 93f1bfc2fc0c9db830cabf4df3318f45fc488833 /expand.php | |
parent | 170d134f6988450861d23eb02855eafd84a4e071 (diff) |
Wrap after 80 cols
Diffstat (limited to 'expand.php')
-rw-r--r-- | expand.php | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -4,10 +4,14 @@ define("SRCDIR", realpath(__DIR__ . "/src/")); $__page = file_get_contents("php://stdin"); $title = ""; -$__page = preg_replace_callback(';<title>(.*?)</title>;i', function(array $matches) use(&$title): string { - $title = $matches[1]; - return ""; -}, $__page); +$__page = preg_replace_callback( + ';<title>(.*?)</title>;i', + function(array $matches) use(&$title): string { + $title = $matches[1]; + return ""; + }, + $__page +); $page = SRCDIR . "/pages/" . bin2hex(random_bytes(8)) . ".tmp"; file_put_contents($page, $__page); unset($__page); |