# Yophpcs

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
```

## Yola Standard
The base standard, it is derived from the [PSR-2 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

### Differences

#### 4.2 Properties

Property names SHOULD be prefixed to indicate private visibility.

```php
<?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
```


# Yophpcs

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
```

## Yola Standard
The base standard, it is derived from the [PSR-2 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

### Differences

#### 4.2 Properties

Property names SHOULD be prefixed to indicate private visibility.

```php
<?php
namespace Vendor\Package;

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

## Yola52 Standard
The base standard is the Yola Standard above.

### Differences

#### 2.3 Side Effects
Side Effects warnings are ignored. **Note:** A file SHOULD still be free of side-effects, but unfortunately the `reqiures` are necessary and throw warnings.

#### 3 Namespace and Class Names
PHP 5.2 does not support the use of namespaces.

## Tests
Included are unit tests. To run tests:

```
$ vendor/bin/codecept run
```


Update Readme with new standard
Update Readme with new standard
