Code Duplication    Length = 9-10 lines in 3 locations

app/Vendor/PHPExcel/PHPExcel/Calculation/FormulaParser.php 3 locations

@@ 255-263 (lines=9) @@
252
			// independent character evaluation (order not important)
253
254
			// establish state-dependent character evaluations
255
			if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
256
				if (strlen($value > 0)) {  // unexpected
257
					$tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
258
					$value = "";
259
				}
260
				$inString = true;
261
				++$index;
262
				continue;
263
 			}
264
265
			if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
266
				if (strlen($value) > 0) { // unexpected
@@ 265-273 (lines=9) @@
262
				continue;
263
 			}
264
265
			if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
266
				if (strlen($value) > 0) { // unexpected
267
					$tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
268
					$value = "";
269
				}
270
				$inPath = true;
271
				++$index;
272
				continue;
273
			}
274
275
			if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_OPEN) {
276
				$inRange = true;
@@ 282-291 (lines=10) @@
279
				continue;
280
			}
281
282
			if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::ERROR_START) {
283
				if (strlen($value) > 0) { // unexpected
284
					$tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
285
					$value = "";
286
				}
287
				$inError = true;
288
				$value .= PHPExcel_Calculation_FormulaParser::ERROR_START;
289
				++$index;
290
				continue;
291
			}
292
293
			// mark start and end of arrays and array rows
294
			if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_OPEN) {