Utils: split some horrifying code across multiple lines

This commit is contained in:
Dylan K. Taylor 2025-01-07 22:35:19 +00:00
parent 9633b7d8a7
commit 794641c0f8
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -469,7 +469,15 @@ final class Utils{
}
$params = implode(", ", $paramsList);
}
$messages[] = "#$i " . (isset($trace[$i]["file"]) ? Filesystem::cleanPath($trace[$i]["file"]) : "") . "(" . (isset($trace[$i]["line"]) ? $trace[$i]["line"] : "") . "): " . (isset($trace[$i]["class"]) ? $trace[$i]["class"] . (($trace[$i]["type"] === "dynamic" || $trace[$i]["type"] === "->") ? "->" : "::") : "") . $trace[$i]["function"] . "(" . Utils::printable($params) . ")";
$messages[] = "#$i " .
(isset($trace[$i]["file"]) ? Filesystem::cleanPath($trace[$i]["file"]) : "") .
"(" . (isset($trace[$i]["line"]) ? $trace[$i]["line"] : "") . "): " .
(isset($trace[$i]["class"]) ?
$trace[$i]["class"] . (($trace[$i]["type"] === "dynamic" || $trace[$i]["type"] === "->") ? "->" : "::") :
""
) .
$trace[$i]["function"] .
"(" . Utils::printable($params) . ")";
}
return $messages;
}