|
@@ 75-78 (lines=4) @@
|
| 72 |
|
$error = 'File "' . $file_name . '" should be saved with Unicode (UTF-8) encoding.'; |
| 73 |
|
$phpcsFile->addError($error, 0); |
| 74 |
|
} |
| 75 |
|
if ( ! self::_checkUtf8W3c($file_content)) { |
| 76 |
|
$error = 'File "' . $file_name . '" should be saved with Unicode (UTF-8) encoding, but it did not successfully pass the W3C test.'; |
| 77 |
|
$phpcsFile->addError($error, 0); |
| 78 |
|
} |
| 79 |
|
if ( ! self::_checkUtf8Rfc3629($file_content)) { |
| 80 |
|
$error = 'File "' . $file_name . '" should be saved with Unicode (UTF-8) encoding, but it did not meet RFC3629 requirements.'; |
| 81 |
|
$phpcsFile->addError($error, 0); |
|
@@ 79-82 (lines=4) @@
|
| 76 |
|
$error = 'File "' . $file_name . '" should be saved with Unicode (UTF-8) encoding, but it did not successfully pass the W3C test.'; |
| 77 |
|
$phpcsFile->addError($error, 0); |
| 78 |
|
} |
| 79 |
|
if ( ! self::_checkUtf8Rfc3629($file_content)) { |
| 80 |
|
$error = 'File "' . $file_name . '" should be saved with Unicode (UTF-8) encoding, but it did not meet RFC3629 requirements.'; |
| 81 |
|
$phpcsFile->addError($error, 0); |
| 82 |
|
} |
| 83 |
|
}//end process() |
| 84 |
|
|
| 85 |
|
|