wp/lib/blobfolio/wp/bm/debug.php
protected function make_results_value($value, $indent=false, $key='') {
		if (is_bool($value)) {
			$value = $value ? 'TRUE' : 'FALSE';
		}
		else {
			try {
				$value = (string) $value;
				$value = trim($value);
			} catch (\Throwable $e) {
				$value = '';
			} catch (\Exception $e) {
				$value = '';
			}
		}

		if ($key) {
			$key = __($key, 'blob-mimes');
			$value = str_pad("$key:", 15, ' ', STR_PAD_RIGHT) . $value;
		}

		// Nothing to wrap.
		if (strlen($value) <= static::LINE_LENGTH && (false === strpos($value, "\n"))) {
			return $value;
		}

		$wrap = $indent ? static::LINE_LENGTH - 15 : static::LINE_LENGTH;
		$value = wordwrap($value, $wrap);
		$value = explode("\n", $value);
		foreach ($value as $k=>$v) {
			$value[$k] = trim($value[$k]);

			if ($k > 0 && $indent) {
				$value[$k] = str_repeat(' ', 15) . $value[$k];
			}
		}

		return implode("\n", $value);
	}
protected function make_results_value($value, $indent=false, $key='') {
		if (is_bool($value)) {
			$value = $value ? 'TRUE' : 'FALSE';
		}
		else {
			try {
				$value = (string) $value;
				$value = trim($value);
			} catch (\Throwable $e) {
				$value = '';
			} catch (\Exception $e) {
				$value = '';
			}
		}

		if ($key) {
			$key = __($key, 'blob-mimes');
			$value = str_pad("$key:", 15, ' ', STR_PAD_RIGHT) . $value;
		}

		// Nothing to wrap.
		if (strlen($value) <= static::LINE_LENGTH && (false === strpos($value, "\n"))) {
			return $value;
		}

		$wrap = $indent ? static::LINE_LENGTH - 15 : static::LINE_LENGTH;
		$value = wordwrap($value, $wrap);
		$value = explode("\n", $value);
		foreach ($value as $k=>$v) {
			$value[$k] = trim($value[$k]);

			if ($k > 0 && $indent) {
				$value[$k] = str_repeat(' ', 15) . $value[$k];
			}
		}

		return implode("\n", $value);
	}
Result Value

@param mixed $value Value.
@param bool $indent Indent subsequent lines.
@param string $key Include the key.
@return string Value.