代码标准修复工具 PHP CS Fixer

码农软件 · 软件分类 · 常用工具包 · 2019-08-16 19:11:51

软件介绍

PHP CS Fixer 是代码标准修复工具,当你想把 PHP 编码标准定义为 PSR-1 和 PSR-2 文件标准时,它能修复你代码中的大部分问题。

如果你已经用 PHP_CodeSniffer 在你的代码中辨识编码问题,你应该知道,手动修复他们是件乏味的事情,尤其是在大型项目中。这个工具就是为解决这个麻烦而生的。

要求:

PHP 最低要求 5.3.6版本

使用示例:

 fix 命令将尽可能地修复一个文件或目录中的编码标准问题。

php php-cs-fixer.phar fix /path/to/dir
php php-cs-fixer.phar fix /path/to/file

--verbose 选项显示使用的修改器。当使用  txt 格式时 (默认的) 将会显示进度通知。

 --level 选项限制修改器被使用到项目中:

php php-cs-fixer.phar fix /path/to/project --level=psr0
php php-cs-fixer.phar fix /path/to/project --level=psr1
php php-cs-fixer.phar fix /path/to/project --level=psr2
php php-cs-fixer.phar fix /path/to/project --level=symfony


本文地址:https://codercto.com/soft/d/12513.html

How to Think Like a Computer Scientist: Learning with Python

How to Think Like a Computer Scientist: Learning with Python

Allen B. Downey、Jeffrey Elkner、Chris Meyers / Green Tea Press / 2002-1-4 / USD 24.95

""How to Think Like a Computer Scientist"" is an introduction to programming using Python, one of the best languages for beginners. This is a Free Book -- you can download it from thinkpython.com. But......一起来看看 《How to Think Like a Computer Scientist: Learning with Python》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码