承接 yharahuts/space-inside-array-braces-fixer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04