Code Duplication    Length = 19-20 lines in 3 locations

core/db_models/fields/EE_Full_HTML_Field.php 1 location

@@ 52-71 (lines=20) @@
49
50
51
52
    public function getSchemaProperties()
53
    {
54
        return array(
55
            'raw' => array(
56
                'description' =>  sprintf(
57
                    __('%s - the value in the database.', 'event_espresso'),
58
                    $this->get_nicename()
59
                ),
60
                'type' => 'string'
61
            ),
62
            'rendered' => array(
63
                'description' =>  sprintf(
64
                    __('%s - transformed for display.', 'event_espresso'),
65
                    $this->get_nicename()
66
                ),
67
                'type' => 'string',
68
                'readonly' => true
69
            )
70
        );
71
    }
72
}

core/db_models/fields/EE_Post_Content_Field.php 1 location

@@ 116-134 (lines=19) @@
113
114
115
116
    public function getSchemaProperties()
117
    {
118
        return array(
119
            'raw' => array(
120
                'description' =>  sprintf(
121
                    __('%s - the content as it exists in the database.', 'event_espresso'),
122
                    $this->get_nicename()
123
                ),
124
                'type' => 'string'
125
            ),
126
            'rendered' => array(
127
                'description' =>  sprintf(
128
                    __('%s - the content rendered for display.', 'event_espresso'),
129
                    $this->get_nicename()
130
                ),
131
                'type' => 'string'
132
            )
133
        );
134
    }
135
}

core/db_models/fields/EE_Money_Field.php 1 location

@@ 208-226 (lines=19) @@
205
206
207
208
    public function getSchemaProperties()
209
    {
210
        return array(
211
            'raw' => array(
212
                'description' =>  sprintf(
213
                    __('%s - the raw value as it exists in the database as a simple float.', 'event_espresso'),
214
                    $this->get_nicename()
215
                ),
216
                'type' => 'number'
217
            ),
218
            'pretty' => array(
219
                'description' =>  sprintf(
220
                    __('%s - formatted for display in the set currency and decimal places.', 'event_espresso'),
221
                    $this->get_nicename()
222
                ),
223
                'type' => 'string'
224
            )
225
        );
226
    }
227
}
228