Code Duplication    Length = 9-9 lines in 2 locations

htdocs/kernel/object.php 2 locations

@@ 451-459 (lines=9) @@
448
            case XOBJ_DTYPE_TXTAREA:
449
                switch (strtolower($format)) {
450
                    case 's':
451
                    case 'show':
452
                        $html   = !empty($this->vars['dohtml']['value']) ? 1 : 0;
453
                        $xcode  = (!isset($this->vars['doxcode']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0;
454
                        $smiley = (!isset($this->vars['dosmiley']['value']) || $this->vars['dosmiley']['value'] == 1) ? 1 : 0;
455
                        $image  = (!isset($this->vars['doimage']['value']) || $this->vars['doimage']['value'] == 1) ? 1 : 0;
456
                        $br     = (!isset($this->vars['dobr']['value']) || $this->vars['dobr']['value'] == 1) ? 1 : 0;
457
458
                        return $ts->displayTarea($ret, $html, $smiley, $xcode, $image, $br);
459
                        break 1;
460
                    case 'e':
461
                    case 'edit':
462
                        return htmlspecialchars($ret, ENT_QUOTES);
@@ 465-473 (lines=9) @@
462
                        return htmlspecialchars($ret, ENT_QUOTES);
463
                        break 1;
464
                    case 'p':
465
                    case 'preview':
466
                        $html   = !empty($this->vars['dohtml']['value']) ? 1 : 0;
467
                        $xcode  = (!isset($this->vars['doxcode']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0;
468
                        $smiley = (!isset($this->vars['dosmiley']['value']) || $this->vars['dosmiley']['value'] == 1) ? 1 : 0;
469
                        $image  = (!isset($this->vars['doimage']['value']) || $this->vars['doimage']['value'] == 1) ? 1 : 0;
470
                        $br     = (!isset($this->vars['dobr']['value']) || $this->vars['dobr']['value'] == 1) ? 1 : 0;
471
472
                        return $ts->previewTarea($ret, $html, $smiley, $xcode, $image, $br);
473
                        break 1;
474
                    case 'f':
475
                    case 'formpreview':
476
                        return htmlspecialchars($ts->stripSlashesGPC($ret), ENT_QUOTES);