From 384609cc83f5b91e6f4dda481654b3f66acdaf90 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Tue, 3 May 2016 10:06:48 +0200 Subject: [PATCH] Coding standards --- examples/DKIM_gen_keys.phps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/DKIM_gen_keys.phps b/examples/DKIM_gen_keys.phps index efd9197d..7c2dbff5 100644 --- a/examples/DKIM_gen_keys.phps +++ b/examples/DKIM_gen_keys.phps @@ -64,13 +64,13 @@ $dnsvalue = '"v=DKIM1\; h=sha256\; t=s\; p=" '; //Many DNS systems don't like long TXT entries //but are OK if it's split into 255-char chunks //Remove PEM wrapper -$publickey = preg_replace('/^-+.*?-+$/m', '' , $publickey); +$publickey = preg_replace('/^-+.*?-+$/m', '', $publickey); //Strip line breaks $publickey = str_replace(["\r", "\n"], '', $publickey); //Split into chunks $keyparts = str_split($publickey, 253); //Becomes 255 when quotes are included //Quote each chunk -foreach($keyparts as $keypart) { +foreach ($keyparts as $keypart) { $dnsvalue .= '"'.trim($keypart).'" '; } echo "\n\nDNS key:\n\n" . trim($dnskey);