summaryrefslogtreecommitdiffstats
path: root/system/database/DB_cache.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/database/DB_cache.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/database/DB_cache.php')
-rw-r--r--system/database/DB_cache.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php
index 448727fd0..977327a8d 100644
--- a/system/database/DB_cache.php
+++ b/system/database/DB_cache.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_DB_Cache {
// Add a trailing slash to the path if needed
$path = preg_replace("/(.+?)\/*$/", "\\1/", $path);
- if (! is_dir($path) OR ! is_really_writable($path))
+ if ( ! is_dir($path) OR ! is_really_writable($path))
{
// If the path is wrong we'll turn off caching
return $this->db->cache_off();
@@ -89,7 +89,7 @@ class CI_DB_Cache {
*/
function read($sql)
{
- if (! $this->check_path())
+ if ( ! $this->check_path())
{
return $this->db->cache_off();
}
@@ -117,7 +117,7 @@ class CI_DB_Cache {
*/
function write($sql, $object)
{
- if (! $this->check_path())
+ if ( ! $this->check_path())
{
return $this->db->cache_off();
}
@@ -129,9 +129,9 @@ class CI_DB_Cache {
$filename = md5($sql);
- if (! @is_dir($dir_path))
+ if ( ! @is_dir($dir_path))
{
- if (! @mkdir($dir_path, DIR_WRITE_MODE))
+ if ( ! @mkdir($dir_path, DIR_WRITE_MODE))
{
return FALSE;
}