static private function diff($a, $b)
	{
		$a_code = explode("\n", file_get_contents($a));
		$b_code = explode("\n", file_get_contents($b));
		$diff   = new \Diff($b_code, $a_code, array(
			'ignoreWhitespace' => TRUE,
			'ignoreNewLines'   => TRUE
		));

		return $diff->render(new \Diff_Renderer_Text_Unified());
	}
static private function diff($a, $b)
	{
		$a_code = explode("\n", file_get_contents($a));
		$b_code = explode("\n", file_get_contents($b));
		$diff   = new \Diff($b_code, $a_code, array(
			'ignoreWhitespace' => TRUE,
			'ignoreNewLines'   => TRUE
		));

		return $diff->render(new \Diff_Renderer_Text_Unified());
	}
static private function diff ( $ a , $ b ) { $ a_code = explode ( "\n" , file_get_contents ( $ a ) ) ; $ b_code = explode ( "\n" , file_get_contents ( $ b ) ) ; $ diff = new \ Diff ( $ b_code , $ a_code , array ( 'ignoreWhitespace' => TRUE , 'ignoreNewLines' => TRUE ) ) ; return $ diff -> render ( new \ Diff_Renderer_Text_Unified ( ) ) ; }
Get the difference between two files

@static
@access private
@param string $a The path to the existing file
@param string $b The path to the new (replacement) file
@return string The unified diff between the two
Get the difference between two files