retailcrm / php-code-style
此包最新版本(v1.0.2)没有可用的许可证信息。
Php代码风格检查器和代码风格修复器的默认设置
v1.0.2
2024-05-06 07:32 UTC
Requires
- php: >=7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2 >=v2.17
This package is auto-updated.
Last update: 2024-09-06 16:02:12 UTC
README
PhpCsFixer的默认设置。
安装
-
执行
composer require --dev retailcrm/php-code-style ^1.0
-
在
.php_cs.dist
中使用<?php $finder = PhpCsFixer\Finder::create() ->in(__DIR__ . '/src') // ... и другие папки, за которыми должен следить PhpCsFixer ; return Retailcrm\PhpCsFixer\Defaults::rules() ->setFinder($finder) // ->setCacheFile(__DIR__ . '/var/.php_cs.cache');
PHPStorm
-
如果您使用的是Php Inspections (EA Extended)插件,请更改检查设置
- 通过'-'>调用静态方法 - 设置标志 除PHPUnit断言外