diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-13 06:22:33 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-13 06:22:33 +0200 |
commit | 0b59f270a432f8c7b6128981f0a39b4a2e2fbd34 (patch) | |
tree | 1e7655eabd76bb981692f5d4f21cb1fc7be3e9cd /system/helpers/path_helper.php | |
parent | 5cf664748ee295867f593d7eb7991bd35fe8eca6 (diff) |
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
Diffstat (limited to 'system/helpers/path_helper.php')
-rw-r--r-- | system/helpers/path_helper.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/helpers/path_helper.php b/system/helpers/path_helper.php index 05bbd0027..2810b29e2 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 @@ if (! function_exists('set_realpath')) // 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 @@ if (! function_exists('set_realpath')) }
}
- -/* End of file path_helper.php */ +
+/* End of file path_helper.php */
/* Location: ./system/helpers/path_helper.php */
\ No newline at end of file |