Code Duplication    Length = 9-9 lines in 2 locations

Result/Converter.php 2 locations

@@ 183-191 (lines=9) @@
180
181
                if (isset($alias['type'])) {
182
                    switch ($alias['type']) {
183
                        case 'float':
184
                            if (is_array($value)) {
185
                                foreach ($value as $key => $item) {
186
                                    $value[$key] = (float)$item;
187
                                }
188
                            } else {
189
                                $value = (float)$value;
190
                            }
191
                            break;
192
                        case 'integer':
193
                            if (is_array($value)) {
194
                                foreach ($value as $key => $item) {
@@ 192-200 (lines=9) @@
189
                                $value = (float)$value;
190
                            }
191
                            break;
192
                        case 'integer':
193
                            if (is_array($value)) {
194
                                foreach ($value as $key => $item) {
195
                                    $value[$key] = (int)$item;
196
                                }
197
                            } else {
198
                                $value = (int)$value;
199
                            }
200
                            break;
201
                        default:
202
                            break;
203
                    }