Code Duplication    Length = 7-7 lines in 2 locations

system/libraries/Database.php 2 locations

@@ 265-271 (lines=7) @@
262
     */
263
    public function select($sql = '*')
264
    {
265
        if (func_num_args() > 1) {
266
            $sql = func_get_args();
267
        } elseif (is_string($sql)) {
268
            $sql = explode(',', $sql);
269
        } else {
270
            $sql = (array) $sql;
271
        }
272
273
        foreach ($sql as $val) {
274
            if (($val = trim($val)) === '') {
@@ 306-312 (lines=7) @@
303
     */
304
    public function from($sql)
305
    {
306
        if (func_num_args() > 1) {
307
            $sql = func_get_args();
308
        } elseif (is_string($sql)) {
309
            $sql = explode(',', $sql);
310
        } else {
311
            $sql = array($sql);
312
        }
313
314
        foreach ($sql as $val) {
315
            if (is_string($val)) {