:octocat: fix PHPCS config, add Slevomat rules

This commit is contained in:
smiley
2024-07-21 14:54:15 +02:00
parent 89cdd09044
commit f32696c8a7
97 changed files with 462 additions and 654 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ final class HanziTest extends DataInterfaceTestAbstract{
try{
$this::assertTrue(Hanzi::validateString($chr));
}
catch(Throwable $e){
catch(Throwable){
/** @noinspection PhpUndefinedConstantInspection - see phpunit.xml.dist */
if(defined('TEST_IS_CI') && TEST_IS_CI === true){
$this::markTestSkipped();
@@ -85,7 +85,7 @@ final class HanziTest extends DataInterfaceTestAbstract{
$this::markTestSkipped(sprintf(
'invalid glyph: %s => %s',
bin2hex(mb_convert_encoding($chr, Hanzi::ENCODING, 'UTF-8')),
$chr
$chr,
));
}
}