summaryrefslogtreecommitdiffstats
path: root/system/database/DB_result.php
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2017-12-20 17:50:39 +0100
committerGabriel Caruso <carusogabriel34@gmail.com>2017-12-20 17:55:18 +0100
commit058a127a6a5e15f39def341e67a7cd6418882c34 (patch)
tree1d8d3bef54d90bcb991312fc2bc33be7e752f2e0 /system/database/DB_result.php
parent3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff)
Clean elses
Diffstat (limited to 'system/database/DB_result.php')
-rw-r--r--system/database/DB_result.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index 98d8876a7..821a0ea07 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -163,10 +163,8 @@ class CI_DB_result {
{
return $this->result_object();
}
- else
- {
- return $this->custom_result_object($type);
- }
+
+ return $this->custom_result_object($type);
}
// --------------------------------------------------------------------
@@ -336,7 +334,7 @@ class CI_DB_result {
if ($type === 'object') return $this->row_object($n);
elseif ($type === 'array') return $this->row_array($n);
- else return $this->custom_row_object($n, $type);
+ return $this->custom_row_object($n, $type);
}
// --------------------------------------------------------------------