original_string: public function tidy($value) {
  		if (is_array($value)) {
  			$value = array_map([&$this, 'tidy'], $value);
  		} else {
  			$value = trim($value);
  			// unify line breaks
  			$value = preg_replace("=(\r\n|\r)=", "\n", $value);
  			// filter nullbyte
  			$value = str_replace("\0", '', $value);
  		}
  		return $value;
  	}
code: public function tidy($value) {
  		if (is_array($value)) {
  			$value = array_map([&$this, 'tidy'], $value);
  		} else {
  			$value = trim($value);
  			// unify line breaks
  			$value = preg_replace("=(\r\n|\r)=", "\n", $value);
  			// filter nullbyte
  			$value = str_replace("\0", '', $value);
  		}
  		return $value;
  	}
code_tokens: public function tidy ( $ value ) { if ( is_array ( $ value ) ) { $ value = array_map ( [ & $ this , 'tidy' ] , $ value ) ; } else { $ value = trim ( $ value ) ; // unify line breaks $ value = preg_replace ( "=(\r\n|\r)=" , "\n" , $ value ) ; // filter nullbyte $ value = str_replace ( "\0" , '' , $ value ) ; } return $ value ; }
docstring: Trims a string, unifies line breaks and deletes null bytes.
  @param	mixed	$value	An array or scalar to clean up.
  @return	mixed	The cleaned version of the input.
docstring_tokens: Trims a string unifies line breaks and deletes null bytes .