yharahuts/space-inside-array-braces-fixer
Composer 安装命令:
composer require yharahuts/space-inside-array-braces-fixer
包简介
Custom rule for php-cs-fixer to add spaces inside array braces
README 文档
README
What is this?
A fixer class for the php-cs-fixer to add spaces inside array (square) braces, like:
// before $array['foo'] = ['bar']; // after $array[ 'foo' ] = [ 'bar' ];
Usage
Require it via composer:
composer require --dev yharahuts/space-inside-array-braces-fixer
Then enable it in your .php-cs-fixer config file:
// ... $config = new PhpCsFixer\Config(); return $config ->registerCustomFixers( [ new \Codestyle\Fixer\SpaceInsideArrayBracesFixer(), ] ) ->setRules( [ // ... 'Yharahuts/space_inside_array_braces' => true ] );
统计信息
- 总下载量: 3.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04