summaryrefslogtreecommitdiffstats
path: root/system/libraries/Exceptions.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/libraries/Exceptions.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/libraries/Exceptions.php')
-rw-r--r--system/libraries/Exceptions.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/libraries/Exceptions.php b/system/libraries/Exceptions.php
index 428759042..5ce243a5e 100644
--- a/system/libraries/Exceptions.php
+++ b/system/libraries/Exceptions.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
*
@@ -74,7 +74,7 @@ class CI_Exceptions {
*/
function log_exception($severity, $message, $filepath, $line)
{
- $severity = (! isset($this->levels[$severity])) ? $severity : $this->levels[$severity];
+ $severity = ( ! isset($this->levels[$severity])) ? $severity : $this->levels[$severity];
log_message('error', 'Severity: '.$severity.' --> '.$message. ' '.$filepath.' '.$line, TRUE);
}
@@ -115,7 +115,7 @@ class CI_Exceptions {
*/
function show_error($heading, $message, $template = 'error_general')
{
- $message = '<p>'.implode('</p><p>', (! is_array($message)) ? array($message) : $message).'</p>';
+ $message = '<p>'.implode('</p><p>', ( ! is_array($message)) ? array($message) : $message).'</p>';
if (ob_get_level() > $this->ob_level + 1)
{
@@ -142,7 +142,7 @@ class CI_Exceptions {
*/
function show_php_error($severity, $message, $filepath, $line)
{
- $severity = (! isset($this->levels[$severity])) ? $severity : $this->levels[$severity];
+ $severity = ( ! isset($this->levels[$severity])) ? $severity : $this->levels[$severity];
$filepath = str_replace("\\", "/", $filepath);
@@ -167,6 +167,6 @@ class CI_Exceptions {
}
// END Exceptions Class
-
-/* End of file Exceptions.php */
+
+/* End of file Exceptions.php */
/* Location: ./system/libraries/Exceptions.php */ \ No newline at end of file