Code Duplication    Length = 5-5 lines in 2 locations

src/ZohoDatabaseModelSync.php 2 locations

@@ 109-113 (lines=5) @@
106
                $type = 'string';
107
                $length = $field->getMaxlength() && $field->getMaxlength() > 0?$field->getMaxlength() : 255;
108
                break;
109
            case 'lookup':
110
                $type = 'string';
111
                $length = $field->getMaxlength() && $field->getMaxlength() > 0?$field->getMaxlength() : 100;
112
                $index = true;
113
                break;
114
            case 'userlookup':
115
            case 'ownerlookup':
116
                $type = 'string';
@@ 115-119 (lines=5) @@
112
                $index = true;
113
                break;
114
            case 'userlookup':
115
            case 'ownerlookup':
116
                $type = 'string';
117
                $index = true;
118
                $length = $field->getMaxlength() && $field->getMaxlength() > 0?$field->getMaxlength() : 25;
119
                break;
120
            case 'formula':
121
                // Note: a Formula can return any type, but we have no way to know which type it returns...
122
                $type = 'string';