src/Exception/ErrorHandler.php
/**
	 * Formats the log message to add helpful whitespace on stack traces.
	 *
	 * @param string $message
	 * @return string
	 */
Formats the log message to add helpful whitespace on stack traces.
@param string $message
@return string
Formats the log message to add helpful whitespace on stack traces . @param string $message @return string
private function formatMessage($message) {
		$message = preg_replace("/\r?\n/", "\n", $message);
		$lines = explode("\n", $message);
		foreach ($lines as $i => $line) {
			if ($i > 0 && !empty($line)) {
				$lines[$i] = "    " . $line;
			}
		}
		return implode("\r\n", $lines);
	}
private function formatMessage ( $ message ) { $ message = preg_replace ( " / \r ? \n / " , " \n " , $ message ) ; $ lines = explode ( " \n " , $ message ) ; foreach ( $ lines as $ i => $ line ) { if ( $ i > 0 && ! empty ( $ line ) ) { $ lines [ $ i ] = " " . $ line ; } } return implode ( " \r \n " , $ lines ) ; }
Formats the log message to add helpful whitespace on stack traces.
Formats the log message to add helpful whitespace on stack traces .