Code Duplication    Length = 5-5 lines in 3 locations

manager/includes/extenders/modifiers.class.inc.php 3 locations

@@ 454-458 (lines=5) @@
451
            case 'and':
452
                $this->condition[] = '&&';break;
453
            case 'show':
454
            case 'this':
455
                $conditional = implode(' ', $this->condition);
456
                $isvalid = (int)(eval("return ({$conditional});"));
457
                if ($isvalid) {
458
                    return $this->srcValue;
459
                }
460
                return null;
461
            case 'then':
@@ 461-465 (lines=5) @@
458
                    return $this->srcValue;
459
                }
460
                return null;
461
            case 'then':
462
                $conditional = implode(' ', $this->condition);
463
                $isvalid = (int)eval("return ({$conditional});");
464
                if ($isvalid) {
465
                    return $opt;
466
                }
467
                return null;
468
            case 'else':
@@ 468-472 (lines=5) @@
465
                    return $opt;
466
                }
467
                return null;
468
            case 'else':
469
                $conditional = implode(' ', $this->condition);
470
                $isvalid = (int)eval("return ({$conditional});");
471
                if (!$isvalid) {
472
                    return $opt;
473
                }
474
                break;
475
            case 'select':