File tree 2 files changed +3
-5
lines changed
dev/tests/static/framework/Magento/Sniffs/Files
setup/src/Magento/Setup/Module/I18n/Dictionary
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ class LineLengthSniff extends \Generic_Sniffs_Files_LineLengthSniff
22
22
*/
23
23
protected function checkLineLength (\PHP_CodeSniffer_File $ phpcsFile , $ stackPtr , $ lineContent )
24
24
{
25
- $ previousLineRegexp = '~__\($|Phrase \($~ ' ;
26
- $ currentLineRegexp = '~__\(.+\)|Phrase \(.+\)~ ' ;
25
+ $ previousLineRegexp = '~__\($|\bPhrase \($~ ' ;
26
+ $ currentLineRegexp = '~__\(.+\)|\bPhrase \(.+\)~ ' ;
27
27
$ currentLineMatch = preg_match ($ currentLineRegexp , $ lineContent ) !== 0 ;
28
28
$ previousLineMatch = preg_match ($ previousLineRegexp , $ this ->previousLineContent ) !== 0 ;
29
29
$ this ->previousLineContent = $ lineContent ;
Original file line number Diff line number Diff line change @@ -259,12 +259,10 @@ public function getCompiledTranslation()
259
259
}
260
260
261
261
/**
262
- * Compile PHP string based on quotes type it enclosed with
262
+ * Compile PHP string (escaping unescaped quotes and processing concatenation)
263
263
*
264
264
* @param string $string
265
265
* @return string
266
- *
267
- * @SuppressWarnings(PHPMD.EvalExpression)
268
266
*/
269
267
private function getCompiledString ($ string )
270
268
{
You can’t perform that action at this time.
0 commit comments