Code Duplication    Length = 5-5 lines in 2 locations

build/CodeIgniter/Sniffs/Strings/DoubleQuoteUsageSniff.php 2 locations

@@ 73-77 (lines=5) @@
70
		// makes sure that it is about a double quote string,
71
		// since variables are not parsed out of double quoted string
72
		$openDblQtStr = substr($string, 0, 1);
73
		if (0 === strcmp($openDblQtStr, '"')) {
74
			$this->processDoubleQuotedString($phpcsFile, $stackPtr, $string);
75
		} else if (0 === strcmp($openDblQtStr, "'")) {
76
			$this->processSingleQuotedString($phpcsFile, $stackPtr, $string);
77
		}
78
	}//end process()
79
80
@@ 364-368 (lines=5) @@
361
        // clean the enclosing quotes
362
        $qtString = substr($qtString, 1, strlen($qtString) - 1 - 1);
363
364
        if (0 === strcmp($open_qt_str, '"')) {
365
            $this->processDoubleQuotedString($phpcsFile, $stackPtr, $qtString);
366
        } else if (0 === strcmp($open_qt_str, "'")) {
367
            $this->processSingleQuotedString($phpcsFile, $stackPtr, $qtString);
368
        }
369
    }//end process()
370
371