Some sweeping syntax changes for consistency:

(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
diff --git a/system/helpers/path_helper.php b/system/helpers/path_helper.php
index 05bbd00..2810b29 100644
--- a/system/helpers/path_helper.php
+++ b/system/helpers/path_helper.php
@@ -1,4 +1,4 @@
-<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 /**

  * CodeIgniter

  *

@@ -35,7 +35,7 @@
  * @param	bool	checks to see if the path exists

  * @return	string

  */	

-if (! function_exists('set_realpath'))

+if ( ! function_exists('set_realpath'))

 {

 	function set_realpath($path, $check_existance = TRUE)

 	{

@@ -57,7 +57,7 @@
 		// Make sure the path exists

 		if ($check_existance == TRUE)

 		{

-			if (! is_dir($path))

+			if ( ! is_dir($path))

 			{

 				show_error('Not a valid path: '.$path);

 			}

@@ -67,6 +67,6 @@
 	}

 }

 

-
-/* End of file path_helper.php */
+

+/* End of file path_helper.php */

 /* Location: ./system/helpers/path_helper.php */
\ No newline at end of file