Remove unused variable assignments

This commit is contained in:
2022-09-15 21:06:32 +02:00
parent 80fd164439
commit ac9b12618d
38 changed files with 42 additions and 83 deletions

View File

@ -107,9 +107,8 @@ final class MDErrorReporter {
$msg .= \sprintf("%-{$longestKey}s :: %s", $key, (string)$value) . PHP_EOL;
}
}
$msg .= PHP_EOL;
return $msg;
return $msg . PHP_EOL;
}
@ -120,15 +119,13 @@ final class MDErrorReporter {
*/
public function getAdditionalDebuggingInfo():array {
$output = [
return [
"Current memory usage" => $this->human_filesize(\memory_get_usage()),
"Peak memory usage" => $this->human_filesize(\memory_get_peak_usage()),
"Included / required files" => \get_included_files(),
# "Allowed memory usage" => $this->human_filesize((int)ini_get("memory_limit")),
];
return $output;
}
/**