summaryrefslogtreecommitdiffstats
path: root/system/libraries/Unit_test.php
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-01-14 01:30:09 +0100
committervlakoff <vlakoff@gmail.com>2013-01-14 01:30:09 +0100
commit1228fe27bc1f22838cd80c5fe33c37274faf0e24 (patch)
tree897f37e872fde0863b36a70effc9441ac0dfb529 /system/libraries/Unit_test.php
parent5a519db2c4884a3972dd33e09d0b3a314aa222e2 (diff)
Replace is_null() with === / !== NULL
Exact same behavior, but faster. I also think it's more readable.
Diffstat (limited to 'system/libraries/Unit_test.php')
-rw-r--r--system/libraries/Unit_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php
index de8c9bb80..7a67c7276 100644
--- a/system/libraries/Unit_test.php
+++ b/system/libraries/Unit_test.php
@@ -356,12 +356,12 @@ class CI_Unit_test {
*/
protected function _parse_template()
{
- if ( ! is_null($this->_template_rows))
+ if ($this->_template_rows !== NULL)
{
return;
}
- if (is_null($this->_template) OR ! preg_match('/\{rows\}(.*?)\{\/rows\}/si', $this->_template, $match))
+ if ($this->_template === NULL OR ! preg_match('/\{rows\}(.*?)\{\/rows\}/si', $this->_template, $match))
{
$this->_default_template();
return;