From 49669ccf9740d391da6d3f2cb7d5348a784c94b6 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sat, 6 Feb 2021 20:19:55 +0100 Subject: [PATCH] Remove inline control strucutres --- MDErrorReporter.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/MDErrorReporter.php b/MDErrorReporter.php index f4d7559..b130e96 100644 --- a/MDErrorReporter.php +++ b/MDErrorReporter.php @@ -85,12 +85,16 @@ final class MDErrorReporter { $msg .= PHP_EOL . "## " . $headline; $msg .= PHP_EOL . "----------------------" . PHP_EOL . PHP_EOL; } - else $msg .= "$headline" . PHP_EOL; + else { + $msg .= "$headline" . PHP_EOL; + } } $longestKey = 0; foreach ($toFormat as $key => $value) { - if (\strlen((string)$key) + (4 * $level) > $longestKey) $longestKey = \strlen((string)$key) + (4 * $level); + if (\strlen((string)$key) + (4 * $level) > $longestKey) { + $longestKey = \strlen((string)$key) + (4 * $level); + } } foreach ($toFormat as $key => $value) { if (\is_array($value)) { @@ -184,7 +188,9 @@ final class MDErrorReporter { if (session_status() === PHP_SESSION_ACTIVE) { $msg .= $this->_formulateDebugMailSection("The current content of \$_SESSION", $_SESSION); } - else $msg .= "No active session"; + else { + $msg .= "No active session"; + } $msg .= $this->_formulateDebugMailSection("Additional debugging information", $this->getAdditionalDebuggingInfo());