<exclude-pattern>*/CodeSniff/*</exclude-pattern>
<rule ref="Generic.Classes.DuplicateClassName" />
+ <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
+ <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
+ <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
<rule ref="Generic.Files.ByteOrderMark" />
<rule ref="Generic.Files.EndFileNewline" />
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
<rule ref="Generic.PHP.DisallowShortOpenTag" />
<rule ref="Generic.PHP.LowerCaseConstant" />
+ <rule ref="Generic.PHP.LowerCaseKeyword" />
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
<rule ref="Squiz.Arrays.ArrayBracketSpacing" />
<rule ref="Squiz.Classes.LowercaseClassKeywords" />
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration" />
<rule ref="Squiz.ControlStructures.ForLoopDeclaration" />
<rule ref="Squiz.ControlStructures.LowercaseDeclaration" />
+ <rule ref="Squiz.Operators.IncrementDecrementUsage" />
<rule ref="Squiz.Operators.ValidLogicalOperators" />
<rule ref="Squiz.PHP.ForbiddenFunctions" />
<rule ref="Squiz.Scope.MethodScope" />
+ <rule ref="Squiz.Strings.EchoedStrings" />
+ <rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace" />
+ <rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing" />
<rule ref="WCF.Classes.ClassFileName" />
<rule ref="WCF.ControlStructures.ControlSignature" />
<rule ref="WCF.Functions.OpeningFunctionBraceKernighanRitchie" />
* @return string $hash
*/
public static function pushToStringStack($string, $type = 'default', $delimiter = '@@') {
- $hash = $delimiter.StringUtil::getHash(self::$i++ . uniqid(microtime()) . $string).$delimiter;
+ self::$i++;
+ $hash = $delimiter.StringUtil::getHash(self::$i.uniqid(microtime()).$string).$delimiter;
if (!isset(self::$stringStack[$type])) {
self::$stringStack[$type] = array();