Code Duplication    Length = 9-9 lines in 2 locations

htdocs/kernel/object.php 2 locations

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