summaryrefslogtreecommitdiffstats
path: root/system/codeigniter/Compat.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-13 06:22:33 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-13 06:22:33 +0200
commit0b59f270a432f8c7b6128981f0a39b4a2e2fbd34 (patch)
tree1e7655eabd76bb981692f5d4f21cb1fc7be3e9cd /system/codeigniter/Compat.php
parent5cf664748ee295867f593d7eb7991bd35fe8eca6 (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/codeigniter/Compat.php')
-rw-r--r--system/codeigniter/Compat.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/system/codeigniter/Compat.php b/system/codeigniter/Compat.php
index 1f01ca812..6478f086e 100644
--- a/system/codeigniter/Compat.php
+++ b/system/codeigniter/Compat.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
*
@@ -36,7 +36,7 @@
* will generate errors when running under PHP 4
*
*/
-if (! defined('E_STRICT'))
+if ( ! defined('E_STRICT'))
{
define('E_STRICT', 2048);
}
@@ -51,11 +51,11 @@ if (! defined('E_STRICT'))
* @param string
* @return bool
*/
-if (! function_exists('ctype_digit'))
+if ( ! function_exists('ctype_digit'))
{
function ctype_digit($str)
{
- if (! is_string($str) OR $str == '')
+ if ( ! is_string($str) OR $str == '')
{
return FALSE;
}
@@ -76,11 +76,11 @@ if (! function_exists('ctype_digit'))
* @param string
* @return bool
*/
-if (! function_exists('ctype_alnum'))
+if ( ! function_exists('ctype_alnum'))
{
function ctype_alnum($str)
{
- if (! is_string($str) OR $str == '')
+ if ( ! is_string($str) OR $str == '')
{
return FALSE;
}
@@ -91,6 +91,6 @@ if (! function_exists('ctype_alnum'))
// --------------------------------------------------------------------
-
-/* End of file Compat.php */
+
+/* End of file Compat.php */
/* Location: ./system/codeigniter/Compat.php */ \ No newline at end of file