3 | ERROR | [x] Import statements must not begin with a leading backslash | | (PSR12.Files.ImportStatement.LeadingSlash) 5 | ERROR | [ ] Logical operator "or" is prohibited; use "||" instead | | (Squiz.Operators.ValidLogicalOperators.NotAllowed) 6 | ERROR | [ ] Logical operator "and" is prohibited; use "&&" instead | | (Squiz.Operators.ValidLogicalOperators.NotAllowed) 9 | ERROR | [ ] Use of the backtick operator is forbidden (Generic.PHP.BacktickOperator.Found) 9 | ERROR | [ ] Use of the backtick operator is forbidden (Generic.PHP.BacktickOperator.Found) 11 | ERROR | [x] Expected 1 space after class keyword; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceAfterKeyword) 11 | ERROR | [x] Expected 1 space after class name; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceAfterName) 11 | ERROR | [x] Expected 1 space before extends keyword; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceBeforeExtends) 11 | ERROR | [x] Expected 1 space before "Bar"; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceBeforeName) 11 | ERROR | [x] Expected 1 space before implements keyword; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceBeforeImplements) 11 | ERROR | [x] Expected 1 space before "I1"; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceBeforeName) 11 | ERROR | [x] Expected 0 spaces between "I1" and comma; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceBeforeComma) 11 | ERROR | [x] Expected no space between "I1" and the comma. Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.SpaceBefore) 11 | ERROR | [x] Expected 1 space between the comma and "I2". Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.TooMuchSpaceAfter) 11 | ERROR | [x] Expected 1 space before "I2"; 2 found | | (PSR2.Classes.ClassDeclaration.SpaceBeforeName) 13 | ERROR | [x] Language constructs must be followed by a single space; expected 1 space but | | found "ยทยทยท" | | (Generic.WhiteSpace.LanguageConstructSpacing.IncorrectSingle) 13 | ERROR | [x] Expected 1 space after USE in trait import statement; 3 found | | (PSR12.Traits.UseDeclaration.SpaceAfterUse) 15 | WARNING | [ ] Visibility must be declared on all constants if your project supports PHP 7.1 | | or later (PSR12.Properties.ConstantVisibility.NotFound) 21 | ERROR | [x] Must use "self::" for local static member reference | | (Squiz.Classes.SelfMemberReference.NotUsed) 32 | ERROR | [x] Expected 1 spaces after opening parenthesis; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen) 32 | WARNING | [x] Single space expected after opening parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis) 32 | ERROR | [x] There must not be a space between the question mark and the type in nullable | | type declarations (PSR12.Functions.NullableTypeDeclaration.WhitespaceFound) 32 | ERROR | [x] Expected 0 spaces between argument "$a" and comma; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeComma) 32 | ERROR | [x] Expected 1 space between comma and argument "$b"; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeArg) 32 | ERROR | [x] Expected no space between "$a" and the comma. Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.SpaceBeforeInFunctionDeclaration) 32 | ERROR | [x] Expected 1 space between the comma and "$b". Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.TooMuchSpaceAfterInFunctionDeclaration) 32 | WARNING | [ ] Comments should start on new line. | | (MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment) 32 | ERROR | [ ] Comments indicating variadic arguments are superfluous and should be replaced | | with actual variadic arguments | | (MediaWiki.Commenting.VariadicArgument.SuperfluousVariadicArgComment) 32 | WARNING | [x] Single space expected before closing parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis) 32 | ERROR | [x] Expected 1 spaces before closing parenthesis; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose) 33 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) 33 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen) 33 | WARNING | [x] Single space expected after opening parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis) 33 | ERROR | [x] Expected 1 space between comma and argument "$f"; 0 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.NoSpaceBeforeArg) 33 | ERROR | [x] Expected 1 space between the comma and "$f". Found: no spaces | | (Universal.WhiteSpace.CommaSpacing.NoSpaceAfterInFunctionDeclaration) 33 | WARNING | [x] Single space expected before closing parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis) 33 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose) 33 | ERROR | [x] Expected 1 spaces after opening parenthesis; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen) 33 | WARNING | [x] Single space expected after opening parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis) 33 | ERROR | [x] Expected 0 spaces between argument "$a" and comma; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeComma) 33 | ERROR | [x] Expected 1 space between comma and argument "$b"; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeArg) 33 | ERROR | [x] Expected no space between "$a" and the comma. Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.SpaceBeforeInClosureUse) 33 | ERROR | [x] Expected 1 space between the comma and "$b". Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.TooMuchSpaceAfterInClosureUse) 33 | WARNING | [x] Single space expected before closing parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis) 33 | ERROR | [x] Expected 1 spaces before closing parenthesis; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose) 34 | WARNING | [x] Use static closure (MediaWiki.Usage.StaticClosure.StaticClosure) 34 | ERROR | [x] Expected 1 spaces after opening parenthesis; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen) 34 | WARNING | [x] Single space expected after opening parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis) 34 | WARNING | [x] Single space expected before closing parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis) 34 | ERROR | [x] Expected 1 spaces before closing parenthesis; 2 found | | (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose) 41 | ERROR | [x] Expected 1 space after "="; 2 found | | (Squiz.WhiteSpace.OperatorSpacing.SpacingAfter) 41 | ERROR | [x] Expected 1 space before "/"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "/"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "<<"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "<<"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "-"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "-"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "+"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "+"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "*"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "*"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "*"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "*"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "-"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "-"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "^"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "^"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 41 | ERROR | [x] Expected 1 space before "%"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 41 | ERROR | [x] Expected 1 space after "%"; 0 found | | (Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter) 43 | ERROR | [x] Space found before object operator | | (Squiz.WhiteSpace.ObjectOperatorSpacing.Before) 43 | ERROR | [x] Space found after object operator | | (Squiz.WhiteSpace.ObjectOperatorSpacing.After) 44 | ERROR | [x] Space found after object operator | | (Squiz.WhiteSpace.ObjectOperatorSpacing.After) 46 | ERROR | [x] Concat operator must be surrounded by a single space | | (Squiz.Strings.ConcatenationSpacing.PaddingFound) 46 | ERROR | [x] Concat operator must be surrounded by a single space | | (Squiz.Strings.ConcatenationSpacing.PaddingFound) 46 | ERROR | [x] Concat operator must be surrounded by a single space | | (Squiz.Strings.ConcatenationSpacing.PaddingFound) 46 | ERROR | [x] Concat operator must be surrounded by a single space | | (Squiz.Strings.ConcatenationSpacing.PaddingFound) 48 | ERROR | [x] Concat operator must be surrounded by a single space | | (Squiz.Strings.ConcatenationSpacing.PaddingFound) 50 | ERROR | [x] Expected 0 spaces after the spread operator; 1 found | | (Generic.WhiteSpace.SpreadOperatorSpacingAfter.TooMuchSpace) 52 | WARNING | [x] Single space expected after opening parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis) 52 | ERROR | [x] Expected 1 space between the comma and "'b'". Found: no spaces | | (Universal.WhiteSpace.CommaSpacing.NoSpaceAfter) 52 | ERROR | [x] Expected no space between "'b'" and the comma. Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.SpaceBefore) 52 | ERROR | [x] Expected 1 space between the comma and "'c'". Found: no spaces | | (Universal.WhiteSpace.CommaSpacing.NoSpaceAfter) 52 | ERROR | [x] Expected 1 space between the comma and "'d'". Found: 2 spaces | | (Universal.WhiteSpace.CommaSpacing.TooMuchSpaceAfter) 52 | WARNING | [x] Single space expected before closing parenthesis | | (MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis) 54 | ERROR | [x] Long list syntax is not allowed (Universal.Lists.DisallowLongListSyntax.Found) 56 | ERROR | [x] Double negative detected. Use a (bool) cast instead. Found: !! | | (Universal.CodeAnalysis.NoDoubleNegative.FoundDouble) 58 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "true" but found "True" | | (Generic.PHP.LowerCaseConstant.Found) 59 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" | | (Generic.PHP.LowerCaseConstant.Found) 62 | ERROR | [x] Space found before semicolon; expected "true;" but found "true\n ;" | | (Squiz.WhiteSpace.SemicolonSpacing.Incorrect) 63 | ERROR | [x] Space found before semicolon; expected "true;" but found "true\n ;" | | (Squiz.WhiteSpace.SemicolonSpacing.Incorrect) 67 | ERROR | [x] Expected no space between "'First'" and the comma. Found: a new line | | (Universal.WhiteSpace.CommaSpacing.SpaceBefore) 68 | ERROR | [x] Expected no space between "'Second'" and the comma. Found: a new line | | (Universal.WhiteSpace.CommaSpacing.SpaceBefore) 72 | ERROR | [x] Expected 1 space after IF keyword; newline found | | (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 78 | ERROR | [x] Space found before object operator | | (Squiz.WhiteSpace.ObjectOperatorSpacing.Before) 81 | ERROR | [ ] The use of inner functions is forbidden (Squiz.PHP.InnerFunctions.NotAllowed) PHPCBF CAN FIX THE 87 MARKED SNIFF VIOLATIONS AUTOMATICALLY