artfocus/codestyle 问题修复 & 功能扩展

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

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

artfocus/codestyle

最新稳定版本:v3.0.1

Composer 安装命令:

composer require artfocus/codestyle

包简介

ArtFocus Coding Standards for PHP CodeSniffer

README 文档

README

  • Based on Consistence, so read it carefully.
  • But it differs in some cases:
    • Arrays: Arrays without key are allowed also when the first key is specified (Nette\Database $criteria).
    • Comments: Inline comments are allowed (code conditions, code folding).
    • Comments: Type parameters are not checked (allow shortcuts like int, bool).
    • Constants: Uppercase constants including TRUE, FALSE, NULL (Nette Code Style).
    • Formatting: There is not space after type cast.
    • Formatting: Heredoc syntax is allowed (eg. in tests).
    • Functions: Opening brace of function with multiline arguments must be on the same line as closing parenthesis.
    • Strings: Double quotes are permitted when contains a variable.
    • Whitespace: There is no space after type cast.
    • and some other differences.

Example Usage

Install into your project the best via Composer:

$ composer require artfocus/codestyle

Run PHP CodeSniffer like this:

$ vendor/bin/phpcs --standard=/path/to/Artfocus/ruleset.xml -sp src tests

Versioning

This packages uses semver.org.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-17