2017 © Pedro Peláez
 

library yophpcs

Yola.com PHP Code Standard

image

yola/yophpcs

Yola.com PHP Code Standard

  • Friday, May 15, 2015
  • by yola
  • Repository
  • 32 Watchers
  • 0 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Yophpcs

Yophpcs is the PHP Code Sniffer for Yola that defines the PHP Coding Standards, (*1)

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, (*2)

Yola Standard

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

Differences

2.3 Side Effects

Side Effects warnings are ignored for require* statements., (*4)

3 Namespace and Class Names

PHP 5.2 does not support the use of namespaces., (*5)

4.2 Properties

Property names SHOULD be prefixed to indicate private visibility., (*6)

<?php
namespace Vendor\Package;

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

Tests

Included are unit tests. To run tests:, (*7)

$ vendor/bin/codecept run

License

MIT, (*8)

The Versions

15/05 2015

dev-master

9999999-dev https://github.com/yola/yophpcs

Yola.com PHP Code Standard

  Sources   Download

MIT

The Development Requires

by Yola Engineering

phpcs style guide

15/05 2015

1.0.1

1.0.1.0 https://github.com/yola/yophpcs

Yola.com PHP Code Standard

  Sources   Download

MIT

The Development Requires

by Yola Engineering

phpcs style guide

12/05 2015

1.0.0

1.0.0.0

Yola.com PHP Code Standard

  Sources   Download

The Requires

 

The Development Requires