xenforo-ltd/xf-cs-fixer 问题修复 & 功能扩展

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

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

xenforo-ltd/xf-cs-fixer

最新稳定版本:v1.1.0

Composer 安装命令:

composer require xenforo-ltd/xf-cs-fixer

包简介

A PHP Coding Standards Fixer configuration for XenForo

README 文档

README

XenForo License Version Status

A PHP Coding Standards Fixer configuration for XenForo.

This library provides a configuration helper and a handful of additional rules which supplement the built-in PER-CS rule set to automatically format code according to the XenForo code style.

Installing

To use our configuration or rules, install them with Composer:

composer require --dev xenforo-ltd/xf-cs-fixer

Usage

Create a .php-cs-fixer.dist.php configuration file in your project directory:

<?php

declare(strict_types=1);

use PhpCsFixer\Finder;
use XFCsFixer\ConfigHelper;

$finder = Finder::create()
	->in(__DIR__)
	->ignoreVCSIgnored(true)
	->notPath([
		// you may set paths or path patterns to exclude here
	]);

$helper = new ConfigHelper($finder);

// you may customize the rules or configuration further here

return $helper->getConfig();

For more information, consult the PHP Coding Standards Fixer documentation.

统计信息

  • 总下载量: 3.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-10