summaryrefslogtreecommitdiffstats
path: root/system/helpers/cookie_helper.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/helpers/cookie_helper.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/helpers/cookie_helper.php')
-rw-r--r--system/helpers/cookie_helper.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php
index 7b8989e3b..821622649 100644
--- a/system/helpers/cookie_helper.php
+++ b/system/helpers/cookie_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
*
@@ -42,7 +42,7 @@
* @param string the cookie prefix
* @return void
*/
-if (! function_exists('set_cookie'))
+if ( ! function_exists('set_cookie'))
{
function set_cookie($name = '', $value = '', $expire = '', $domain = '', $path = '/', $prefix = '')
{
@@ -73,7 +73,7 @@ if (! function_exists('set_cookie'))
$path = $CI->config->item('cookie_path');
}
- if (! is_numeric($expire))
+ if ( ! is_numeric($expire))
{
$expire = time() - 86500;
}
@@ -103,7 +103,7 @@ if (! function_exists('set_cookie'))
* @param bool
* @return mixed
*/
-if (! function_exists('get_cookie'))
+if ( ! function_exists('get_cookie'))
{
function get_cookie($index = '', $xss_clean = FALSE)
{
@@ -123,7 +123,7 @@ if (! function_exists('get_cookie'))
* @param string the cookie prefix
* @return void
*/
-if (! function_exists('delete_cookie'))
+if ( ! function_exists('delete_cookie'))
{
function delete_cookie($name = '', $domain = '', $path = '/', $prefix = '')
{
@@ -131,6 +131,6 @@ if (! function_exists('delete_cookie'))
}
}
-
-/* End of file cookie_helper.php */
+
+/* End of file cookie_helper.php */
/* Location: ./system/helpers/cookie_helper.php */ \ No newline at end of file