summaryrefslogtreecommitdiffstats
path: root/system/helpers/email_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/email_helper.php')
-rw-r--r--system/helpers/email_helper.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/helpers/email_helper.php b/system/helpers/email_helper.php
index 594a030fe..496d61203 100644
--- a/system/helpers/email_helper.php
+++ b/system/helpers/email_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
*
@@ -33,11 +33,11 @@
* @access public
* @return bool
*/
-if (! function_exists('valid_email'))
+if ( ! function_exists('valid_email'))
{
function valid_email($address)
{
- return (! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $address)) ? FALSE : TRUE;
+ return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $address)) ? FALSE : TRUE;
}
}
@@ -49,7 +49,7 @@ if (! function_exists('valid_email'))
* @access public
* @return bool
*/
-if (! function_exists('send_email'))
+if ( ! function_exists('send_email'))
{
function send_email($recipient, $subject = 'Test email', $message = 'Hello World')
{
@@ -57,6 +57,6 @@ if (! function_exists('send_email'))
}
}
-
-/* End of file email_helper.php */
+
+/* End of file email_helper.php */
/* Location: ./system/helpers/email_helper.php */ \ No newline at end of file