Code Duplication    Length = 12-12 lines in 2 locations

Classes/Tca/TableService.php 2 locations

@@ 89-100 (lines=12) @@
86
     *
87
     * @return string
88
     */
89
    public function getLabel()
90
    {
91
        $label = '';
92
        try {
93
            $label = LocalizationUtility::translate($this->getLabelField(), '');
94
        } catch (\InvalidArgumentException $e) {
95
        }
96
        if (empty($label)) {
97
            $label = $this->getLabelField();
98
        }
99
        return $label;
100
    }
101
102
    /**
103
     * Returns the title of the table.
@@ 107-118 (lines=12) @@
104
     *
105
     * @return string
106
     */
107
    public function getTitle()
108
    {
109
        $title = '';
110
        try {
111
            $title = LocalizationUtility::translate($this->get('title'), '');
112
        } catch (\InvalidArgumentException $e) {
113
        }
114
        if (empty($title)) {
115
            $title = $this->get('title');
116
        }
117
        return $title;
118
    }
119
120
    /**
121
     * Return the "disabled" field.