change fixer config

This commit is contained in:
crazywhalecc
2022-12-24 01:18:59 +08:00
parent 90b6580e80
commit bd98608d2e
2 changed files with 4 additions and 1 deletions

View File

@@ -67,6 +67,8 @@ return (new PhpCsFixer\Config())
'phpdoc_summary' => false, 'phpdoc_summary' => false,
'php_unit_test_class_requires_covers' => false, 'php_unit_test_class_requires_covers' => false,
'global_namespace_import' => false, 'global_namespace_import' => false,
'phpdoc_order' => false,
'no_useless_concat_operator' => false,
]) ])
->setFinder( ->setFinder(
PhpCsFixer\Finder::create() PhpCsFixer\Finder::create()

View File

@@ -14,8 +14,9 @@ function loader__generated_id__()
require_once Phar::running() . '/' . $v; require_once Phar::running() . '/' . $v;
} }
} }
if ('__generate' . 'd_id__' === _PHAR_STUB_ID) { if (('__generate' . 'd_id__') === _PHAR_STUB_ID) {
echo 'Cannot execute this file directly!' . PHP_EOL; echo 'Cannot execute this file directly!' . PHP_EOL;
exit(1); exit(1);
} }
/* @phpstan-ignore-next-line */
return json_decode(file_get_contents(__DIR__ . '/zmplugin.json'), true) ?? ['zm_module' => false]; return json_decode(file_get_contents(__DIR__ . '/zmplugin.json'), true) ?? ['zm_module' => false];