承接 pbweb/pbweb-coding-standard 相关项目开发

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

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

pbweb/pbweb-coding-standard

Composer 安装命令:

composer require pbweb/pbweb-coding-standard

包简介

PB Web Media coding standard

README 文档

README

This is the PHPCS ruleset we use. It is based on the Symfony2 coding standard provided by Escape Studios and features:

  • Rule which requires spaces around string concat (.) operator
  • Rule which requires spaces around unary not (!) operator

It also disables some rules which causes the following:

  • Space after opening bracket are now allowed (conflicts with spaces around unary not rule, eg.: some_func( ! $value))
  • Function comments are no longer required (PHP7 type hinting fixes this)
  • No need to order class methods by scope
  • Multi line function declaration may be on the following line

Install globally via composer:

Install using:

composer global require pbweb/pbweb-coding-standard

And configure phpcs to use the Pbweb standard

phpcs --config-set installed_paths ${HOME}/.composer/vendor/pbweb/pbweb-coding-standard/,${HOME}/.composer/vendor/escapestudios/symfony2-coding-standard/
phpcs --config-set default_standard Pbweb

Install in your project only:

Install using:

composer require pbweb/pbweb-coding-standard

Phing configuration

Example phing target:

<target name="check:cs" description="Checks coding standard.">
    <echo msg="Checking coding standard..." />
    <phpcodesniffer standard="Pbweb"
                    showSniffs="true"
                    showWarnings="true">
        <fileset refid="sourcecode" />
        <formatter type="checkstyle" outfile="${dir.reports}/checkstyle.xml" />
        <config name="installed_paths" value="${project.basedir}/vendor/pbweb/pbweb-coding-standard,${project.basedir}/vendor/escapestudios/symfony2-coding-standard" />
    </phpcodesniffer>
</target>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固