From 551fe367342f4c3d4c859f58054c6076b3fe4d69 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 19 Jul 2024 16:30:46 +0200 Subject: Wrap after 80 cols --- expand.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'expand.php') diff --git a/expand.php b/expand.php index 41d4dc7..fb83625 100644 --- a/expand.php +++ b/expand.php @@ -4,10 +4,14 @@ define("SRCDIR", realpath(__DIR__ . "/src/")); $__page = file_get_contents("php://stdin"); $title = ""; -$__page = preg_replace_callback(';(.*?);i', function(array $matches) use(&$title): string { - $title = $matches[1]; - return ""; -}, $__page); +$__page = preg_replace_callback( + ';(.*?);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); -- cgit v1.2.3