Code Duplication    Length = 13-13 lines in 3 locations

lib/midgard/admin/asgard/schemadb.php 3 locations

@@ 132-144 (lines=13) @@
129
                case MGD_TYPE_UINT:
130
                    $this->_add_int_field($key);
131
                    break;
132
                case MGD_TYPE_FLOAT:
133
                    $this->_schemadb['object']->append_field
134
                    (
135
                        $key,
136
                        array
137
                        (
138
                            'title'       => $key,
139
                            'storage'     => $key,
140
                            'type'        => 'number',
141
                            'widget'      => 'text',
142
                        )
143
                    );
144
                    break;
145
                case MGD_TYPE_BOOLEAN:
146
                    $this->_schemadb['object']->append_field
147
                    (
@@ 145-157 (lines=13) @@
142
                        )
143
                    );
144
                    break;
145
                case MGD_TYPE_BOOLEAN:
146
                    $this->_schemadb['object']->append_field
147
                    (
148
                        $key,
149
                        array
150
                        (
151
                            'title'       => $key,
152
                            'storage'     => $key,
153
                            'type'        => 'boolean',
154
                            'widget'      => 'checkbox',
155
                        )
156
                    );
157
                    break;
158
                case MGD_TYPE_TIMESTAMP:
159
                    $this->_schemadb['object']->append_field
160
                    (
@@ 158-170 (lines=13) @@
155
                        )
156
                    );
157
                    break;
158
                case MGD_TYPE_TIMESTAMP:
159
                    $this->_schemadb['object']->append_field
160
                    (
161
                        $key,
162
                        array
163
                        (
164
                            'title'       => $key,
165
                            'storage'     => $key,
166
                            'type' => 'date',
167
                            'widget' => 'jsdate',
168
                        )
169
                    );
170
                    break;
171
            }
172
        }
173