Code Duplication    Length = 8-9 lines in 2 locations

src/CsvDialect.php 2 locations

@@ 122-129 (lines=8) @@
119
                } else {
120
                    $field++;
121
                    $fields[$field] = "";
122
                    if ($char == $this->dialect["quoteChar"]) {
123
                        $enclosed = true;
124
                        continue;
125
                    } else {
126
                        $enclosed = false;
127
                        $fields[$field] .= $char;
128
                        continue;
129
                    }
130
                }
131
            } elseif ($enclosed) {
132
                // processing an enclosed field
@@ 161-169 (lines=9) @@
158
                        continue;
159
                    }
160
                }
161
                if ($char == $this->dialect["quoteChar"]) {
162
                    // encountered a quote signifying the end of the enclosed field
163
                    $enclosed = null;
164
                    continue;
165
                } else {
166
                    // character in enclosed field
167
                    $fields[$field] .= $char;
168
                    continue;
169
                }
170
            } else {
171
                // processing a non-enclosed field
172
                if ($char == $this->dialect["quoteChar"]) {