You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MO4 Coding Standard is an extension of the [Symfony Coding Standard](http://symfony.com/doc/current/contributing/code/standards.html) and adds following rules:
@@ -40,45 +34,17 @@ The MO4 Coding Standard is an extension of the [Symfony Coding Standard](http://
40
34
* There must be at least one space around operators, and (except for aligning multiline statements) at most one, see the
With this ruleset enabled, following [Symfony Coding Standard](http://symfony.com/doc/current/contributing/code/standards.html) rules are not enforced:
39
+
* "`add doc blocks for all classes`": the doc block for classes can be omitted, if they add no value
40
+
* "`the license block has to be present at the top of every PHP file, before the namespace`": the license block can be omitted
43
41
44
-
## Configuration
45
-
46
-
### MO4.Formatting.AlphabeticalUseStatements
47
-
48
-
The `order` property of the `MO4.Formatting.AlphabeticalUseStatements` sniff defines
49
-
which function is used for ordering.
50
-
51
-
Possible values for order:
52
-
*`dictionary` (default): based on [strcmp](http://php.net/strcmp), the namespace separator
53
-
precedes any other character
54
-
```php
55
-
use Doctrine\ORM\Query;
56
-
use Doctrine\ORM\Query\Expr;
57
-
use Doctrine\ORM\QueryBuilder;
58
-
```
59
-
*`string`: binary safe string comparison using [strcmp](http://php.net/strcmp)
60
-
```php
61
-
use Doctrine\ORM\Query;
62
-
use Doctrine\ORM\QueryBuilder;
63
-
use Doctrine\ORM\Query\Expr;
42
+
Most of the issues can be auto-fixed with `phpcbf`.
64
43
65
-
use ExampleSub;
66
-
use Examples;
67
-
```
68
-
*`string-locale`: locale based string comparison using [strcoll](http://php.net/strcoll)
0 commit comments