summaryrefslogtreecommitdiffstats
path: root/system/libraries/Config.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/Config.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/Config.php')
-rw-r--r--system/libraries/Config.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/libraries/Config.php b/system/libraries/Config.php
index 06e1cbe80..a5d268912 100644
--- a/system/libraries/Config.php
+++ b/system/libraries/Config.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
*
@@ -66,7 +66,7 @@ class CI_Config {
return TRUE;
}
- if (! file_exists(APPPATH.'config/'.$file.EXT))
+ if ( ! file_exists(APPPATH.'config/'.$file.EXT))
{
if ($fail_gracefully === TRUE)
{
@@ -77,7 +77,7 @@ class CI_Config {
include(APPPATH.'config/'.$file.EXT);
- if (! isset($config) OR ! is_array($config))
+ if ( ! isset($config) OR ! is_array($config))
{
if ($fail_gracefully === TRUE)
{
@@ -125,7 +125,7 @@ class CI_Config {
{
if ($index == '')
{
- if (! isset($this->config[$item]))
+ if ( ! isset($this->config[$item]))
{
return FALSE;
}
@@ -134,12 +134,12 @@ class CI_Config {
}
else
{
- if (! isset($this->config[$index]))
+ if ( ! isset($this->config[$index]))
{
return FALSE;
}
- if (! isset($this->config[$index][$item]))
+ if ( ! isset($this->config[$index][$item]))
{
return FALSE;
}
@@ -165,7 +165,7 @@ class CI_Config {
*/
function slash_item($item)
{
- if (! isset($this->config[$item]))
+ if ( ! isset($this->config[$item]))
{
return FALSE;
}