承接 yola/yophpcs 相关项目开发

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

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

yola/yophpcs

最新稳定版本:1.0.1

Composer 安装命令:

composer require yola/yophpcs

包简介

Yola.com PHP Code Standard

README 文档

README

Yophpcs is the PHP Code Sniffer for Yola that defines the PHP Coding Standards

Using the Code Sniffer

$ vendor/bin/phpcs --extensions=php --standard=/path/to/yophpcs/<standard> /path/to/project

Use as the phpcs standard

$ phpcs --config-set default_standard /path/to/checkout/yophpcs/Yola
Config value "default_standard" added successfully

The phpcs config file is located: /usr/local/etc/PHP_CodeSniffer/CodeSniffer.conf

Yola Standard

The base standard, it is derived from the PSR-2 Coding Style Guide.

Differences

2.3 Side Effects

Side Effects warnings are ignored for require* statements.

3 Namespace and Class Names

PHP 5.2 does not support the use of namespaces.

4.2 Properties

Property names SHOULD be prefixed to indicate private visibility.

<?php
namespace Vendor\Package;

class ClassName
{
    public $foo = null;
    protected $bar = null;
    private $_baz = null;
}

Tests

Included are unit tests. To run tests:

$ vendor/bin/codecept run

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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