承接 adeoweb/adeo-coding-style-php 相关项目开发

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

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

adeoweb/adeo-coding-style-php

最新稳定版本:1.1.5

Composer 安装命令:

composer require adeoweb/adeo-coding-style-php

包简介

AdeoWeb standards

README 文档

README

A set of AdeoWeb rules for PHP_CodeSniffer tool.

Installation

To use within your project you can use:

  1. Add package:
$ composer require --dev adeoweb/adeo-coding-style-php
  1. To add the code standard please include this into the phpcs.xml and modify it accordingly:
<?xml version="1.0"?>
<ruleset>
    <rule ref="./vendor/adeoweb/adeo-coding-style-php/standard/Magento/ruleset.xml"/>
    <file>./src</file>
</ruleset>

Running

To run:

$ ./vendor/bin/phpcs

Fixing issues automatically

Also you can run phpcbf from the command-line to fix your code MyAwesomeExtension for warnings like "PHPCBF CAN FIX THE [0-9]+ MARKED SNIFF VIOLATIONS AUTOMATICALLY"

$ vendor/bin/phpcbf app/code/MyAwesomeExtension

Versions

Releases are made when there is a:

  • Patch: messages of type WARNING has changed: it was added, removed, parameters changed
  • Minor: the message of type ERROR has been changed

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-31