summaryrefslogtreecommitdiffstats
path: root/system/libraries/Hooks.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/Hooks.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/Hooks.php')
-rw-r--r--system/libraries/Hooks.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/system/libraries/Hooks.php b/system/libraries/Hooks.php
index d7637c39e..8c99bdd10 100644
--- a/system/libraries/Hooks.php
+++ b/system/libraries/Hooks.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
*
@@ -68,7 +68,7 @@ class CI_Hooks {
@include(APPPATH.'config/hooks'.EXT);
- if (! isset($hook) OR ! is_array($hook))
+ if ( ! isset($hook) OR ! is_array($hook))
{
return;
}
@@ -90,7 +90,7 @@ class CI_Hooks {
*/
function _call_hook($which = '')
{
- if (! $this->enabled OR ! isset($this->hooks[$which]))
+ if ( ! $this->enabled OR ! isset($this->hooks[$which]))
{
return FALSE;
}
@@ -123,7 +123,7 @@ class CI_Hooks {
*/
function _run_hook($data)
{
- if (! is_array($data))
+ if ( ! is_array($data))
{
return FALSE;
}
@@ -144,14 +144,14 @@ class CI_Hooks {
// Set file path
// -----------------------------------
- if (! isset($data['filepath']) OR ! isset($data['filename']))
+ if ( ! isset($data['filepath']) OR ! isset($data['filename']))
{
return FALSE;
}
$filepath = APPPATH.$data['filepath'].'/'.$data['filename'];
- if (! file_exists($filepath))
+ if ( ! file_exists($filepath))
{
return FALSE;
}
@@ -196,7 +196,7 @@ class CI_Hooks {
if ($class !== FALSE)
{
- if (! class_exists($class))
+ if ( ! class_exists($class))
{
require($filepath);
}
@@ -206,7 +206,7 @@ class CI_Hooks {
}
else
{
- if (! function_exists($function))
+ if ( ! function_exists($function))
{
require($filepath);
}
@@ -221,6 +221,6 @@ class CI_Hooks {
}
// END CI_Hooks class
-
-/* End of file Hooks.php */
+
+/* End of file Hooks.php */
/* Location: ./system/libraries/Hooks.php */ \ No newline at end of file