-
Improvement
-
Resolution: Fixed
-
Major
-
3.1.0-b4
-
None
-
None
The sniffer should have more rules to test more things about the coding style.
Currently the sniffer does not find any error in this file:
<html>
|
<?php
|
|
eval ('test');
|
|
$a = (int)$a;
|
|
$a = test('a','b' );
|
|
function foo ($bar, $baz = true) {
|
}
|
|
if($a ) {echo $b;}
|
$a [ 'a' ] = $a
|
[ 'a' ];
|
|
if ($a){
|
|
}elseif($b){}
|
1.
|
Simple rules | Unverified Fix | Andreas Fischer [X] (Inactive) | |
2.
|
Add rule Generic.Formatting.SpaceAfterCast | Unverified Fix | Andreas Fischer [X] (Inactive) | |
3.
|
Add rule Squiz.PHP.Eval | Unverified Fix | Andreas Fischer [X] (Inactive) | |
4.
|
Add rule Squiz.PHP.DisallowSizeFunctionsInLoops | Closed | Andreas Fischer [X] (Inactive) |