summaryrefslogtreecommitdiffstats
path: root/system/libraries/Unit_test.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/Unit_test.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/Unit_test.php')
-rw-r--r--system/libraries/Unit_test.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php
index bfa6d5dc5..e53e04c15 100644
--- a/system/libraries/Unit_test.php
+++ b/system/libraries/Unit_test.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
*
@@ -262,8 +262,8 @@ class CI_Unit_test {
{
$back = debug_backtrace();
- $file = (! isset($back['1']['file'])) ? '' : $back['1']['file'];
- $line = (! isset($back['1']['line'])) ? '' : $back['1']['line'];
+ $file = ( ! isset($back['1']['file'])) ? '' : $back['1']['file'];
+ $line = ( ! isset($back['1']['line'])) ? '' : $back['1']['line'];
return array('file' => $file, 'line' => $line);
}
@@ -302,7 +302,7 @@ class CI_Unit_test {
*/
function _parse_template()
{
- if (! is_null($this->_template_rows))
+ if ( ! is_null($this->_template_rows))
{
return;
}
@@ -313,7 +313,7 @@ class CI_Unit_test {
return;
}
- if (! preg_match("/\{rows\}(.*?)\{\/rows\}/si", $this->_template, $match))
+ if ( ! preg_match("/\{rows\}(.*?)\{\/rows\}/si", $this->_template, $match))
{
$this->_default_template();
return;