Code Duplication    Length = 7-7 lines in 2 locations

code/fields/SummaryField.php 1 location

@@ 95-101 (lines=7) @@
92
93
        $result = $context->renderWith($this->getTemplates());
94
95
        if (is_string($result)) {
96
            $result = trim($result);
97
        } else {
98
            if ($result instanceof DBField) {
99
                $result->setValue(trim($result->getValue()));
100
            }
101
        }
102
103
        return $result;
104
    }

code/fields/TicketsField.php 1 location

@@ 115-121 (lines=7) @@
112
113
        $result = $context->renderWith($this->getTemplates());
114
115
        if (is_string($result)) {
116
            $result = trim($result);
117
        } else {
118
            if ($result instanceof DBField) {
119
                $result->setValue(trim($result->getValue()));
120
            }
121
        }
122
123
        return $result;
124
    }