src/Http/Response.php
/**
	 * Writes to the response content.
	 *
	 * @param mixed $data
	 */
Writes to the response content.
@param mixed $data
Writes to the response content . @param mixed $data
protected function writeObject($data = '') {
		if (is_bool($data)) {
			$data = $data ? 'true' : 'false';
		}
		if (is_array($data)) {
			$data = json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
		}
		if (is_object($data)) {
			$data = (string)$data;
		}
		if (is_null($data)) {
			$data = 'NULL';
		}
		$this->content .= $data;
	}
protected function writeObject ( $ data = '' ) { if ( is_bool ( $ data ) ) { $ data = $ data ? 'true' : 'false' ; } if ( is_array ( $ data ) ) { $ data = json_encode ( $ data , JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE ) ; } if ( is_object ( $ data ) ) { $ data = ( string ) $ data ; } if ( is_null ( $ data ) ) { $ data = 'NULL' ; } $ this -> content .= $ data ; }
Writes to the response content.
Writes to the response content .