josephscott/phpcsfixer-config 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

josephscott/phpcsfixer-config

最新稳定版本:0.0.4

Composer 安装命令:

composer require josephscott/phpcsfixer-config

包简介

README 文档

README

Install

composer require --dev josephscott/phpcsfixer-config

Create a .php-cs-fixer.dist.php in the top level directory of your repo with:

<?php
declare( strict_types = 1 );

require __DIR__ . '/vendor/autoload.php';

$fixer_config = new JosephScott\PHPCSFixer_Config( __DIR__ );
return $fixer_config->get_config();

If you want to make alterations, all of the rules and options are available via public attributes on the JosephScott\PHPCSFixer_Config() object. Here is how you would alter the array_indention rule and the indent config option:

$fixer_config = new JosephScott\PHPCSFixer_Config( __DIR__ );
$fixer_config->config_indent = '    ';
$fixer_config->rules['array_indention'] = false;
return $fixer_config->get_config();

统计信息

  • 总下载量: 284
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-23