Remove inline control strucutres

This commit is contained in:
Joshua Ramon Enslin 2021-02-06 20:19:55 +01:00
parent 7ecd0e4a8d
commit 49669ccf97
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -85,12 +85,16 @@ final class MDErrorReporter {
$msg .= PHP_EOL . "## " . $headline; $msg .= PHP_EOL . "## " . $headline;
$msg .= PHP_EOL . "----------------------" . PHP_EOL . PHP_EOL; $msg .= PHP_EOL . "----------------------" . PHP_EOL . PHP_EOL;
} }
else $msg .= "$headline" . PHP_EOL; else {
$msg .= "$headline" . PHP_EOL;
}
} }
$longestKey = 0; $longestKey = 0;
foreach ($toFormat as $key => $value) { 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) { foreach ($toFormat as $key => $value) {
if (\is_array($value)) { if (\is_array($value)) {
@ -184,7 +188,9 @@ final class MDErrorReporter {
if (session_status() === PHP_SESSION_ACTIVE) { if (session_status() === PHP_SESSION_ACTIVE) {
$msg .= $this->_formulateDebugMailSection("The current content of \$_SESSION", $_SESSION); $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", $msg .= $this->_formulateDebugMailSection("Additional debugging information",
$this->getAdditionalDebuggingInfo()); $this->getAdditionalDebuggingInfo());