summaryrefslogtreecommitdiffstats
path: root/system/libraries/Parser.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/Parser.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/Parser.php')
-rw-r--r--system/libraries/Parser.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php
index f260b2e19..d349e26d3 100644
--- a/system/libraries/Parser.php
+++ b/system/libraries/Parser.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
*
@@ -130,7 +130,7 @@ class CI_Parser {
$temp = $match['1'];
foreach ($row as $key => $val)
{
- if (! is_array($val))
+ if ( ! is_array($val))
{
$temp = $this->_parse_single($key, $val, $temp);
}
@@ -158,7 +158,7 @@ class CI_Parser {
*/
function _match_pair($string, $variable)
{
- if (! preg_match("|".$this->l_delim . $variable . $this->r_delim."(.+)".$this->l_delim . '/' . $variable . $this->r_delim."|s", $string, $match))
+ if ( ! preg_match("|".$this->l_delim . $variable . $this->r_delim."(.+)".$this->l_delim . '/' . $variable . $this->r_delim."|s", $string, $match))
{
return FALSE;
}
@@ -168,6 +168,6 @@ class CI_Parser {
}
// END Parser Class
-
-/* End of file Parser.php */
+
+/* End of file Parser.php */
/* Location: ./system/libraries/Parser.php */ \ No newline at end of file