This is the list of analyses that were run. Those that doesn't have result will not be listed in the 'Analyses' section.
This may be due to PHP version or PHP configuration incompatibilities.
Analysis | Code |
---|---|
Adding Zero | Structures/AddZero |
Ambiguous Array Index | Arrays/AmbiguousKeys |
Multiple Index Definition | Arrays/MultipleIdenticalKeys |
Empty Classes | Classes/EmptyClass |
Forgotten Visibility | Classes/NonPpp |
Non Static Methods Called In A Static | Classes/NonStaticMethodsCalledStatic |
Old Style Constructor | Classes/OldStyleConstructor |
Static Methods Called From Object | Classes/StaticMethodsCalledFromObject |
Constants With Strange Names | Constants/ConstantStrangeNames |
ext/ereg | Extensions/Extereg |
ext/mcrypt | Extensions/Extmcrypt |
Empty Function | Functions/EmptyFunction |
Redeclared PHP Functions | Functions/RedeclaredPhpFunction |
Methods Without Return | Functions/WithoutReturn |
Empty Interfaces | Interfaces/EmptyInterface |
Incompilable Files | Php/Incompilable |
error_reporting() With Integers | Structures/ErrorReportingWithInteger |
Eval() Usage | Structures/EvalUsage |
Exit() Usage | Structures/ExitUsage |
Forgotten Whitespace | Structures/ForgottenWhiteSpace |
Iffectations | Structures/Iffectation |
Multiply By One | Structures/MultiplyByOne |
@ Operator | Structures/Noscream |
Not Not | Structures/NotNot |
include_once() Usage | Structures/OnceUsage |
Phpinfo | Structures/PhpinfoUsage |
Strpos()-like Comparison | Structures/StrposCompare |
Throws An Assignement | Structures/ThrowsAndAssign |
var_dump()... Usage | Structures/VardumpUsage |
__toString() Throws Exception | Structures/toStringThrowsException |
Malformed Octal | Type/MalformedOctal |
Non Ascii Variables | Variables/VariableNonascii |
Used Once Variables | Variables/VariableUsedOnce |
Bad Constants Names | Constants/BadConstantnames |
Empty Traits | Traits/EmptyTrait |
Unused Use | Namespaces/UnusedUse |
Use With Fully Qualified Name | Namespaces/UseWithFullyQualifiedNS |
$HTTP_RAW_POST_DATA Usage | Php/RawPostDataUsage |
Useless Instructions | Structures/UselessInstruction |
Abstract Static Methods | Classes/AbstractStatic |
Invalid Constant Name | Constants/InvalidName |
Multiple Constant Definition | Constants/MultipleConstantDefinition |
Wrong Optional Parameter | Functions/WrongOptionalParameter |
Multiple Definition Of The Same Argument | Functions/MultipleSameArguments |
Use === null | Php/IsnullVsEqualNull |
$this Is Not An Array | Classes/ThisIsNotAnArray |
One Variable String | Type/OneVariableStrings |
Static Methods Can't Contain $this | Classes/StaticContainsThis |
While(List() = Each()) | Structures/WhileListEach |
Several Instructions On The Same Line | Structures/OneLineTwoInstructions |
Multiples Identical Case | Structures/MultipleDefinedCase |
Switch Without Default | Structures/SwitchWithoutDefault |
$this Belongs To Classes Or Traits | Classes/ThisIsForClasses |
Nested Ternary | Structures/NestedTernary |
Switch With Too Many Default | Structures/SwitchWithMultipleDefault |
Non-constant Index In Array | Arrays/NonConstantArray |
Undefined Constants | Constants/UndefinedConstants |
Instantiating Abstract Class | Classes/InstantiatingAbstractClass |
Class, Interface Or Trait With Identical Names | Classes/CitSameName |
Empty Try Catch | Structures/EmptyTryCatch |
Undefined Classes | Classes/UndefinedClasses |
Htmlentities Calls | Structures/Htmlentitiescall |
Undefined Class Constants | Classes/UndefinedConstants |
Unused Private Properties | Classes/UnusedPrivateProperty |
Unused Private Methods | Classes/UnusedPrivateMethod |
Unused Functions | Functions/UnusedFunctions |
Used Once Variables (In Scope) | Variables/VariableUsedOnceByContext |
Undefined Functions | Functions/UndefinedFunctions |
Deprecated Functions | Php/Deprecated |
mcrypt_create_iv() With Default Values | Structures/McryptcreateivWithoutOption |
Dangling Array References | Structures/DanglingArrayReferences |
Queries In Loops | Structures/QueriesInLoop |
Var Keyword | Classes/OldStyleVar |
Aliases Usage | Functions/AliasesUsage |
Uses Default Values | Functions/UsesDefaultArguments |
Wrong Number Of Arguments | Functions/WrongNumberOfArguments |
Hardcoded Passwords | Functions/HardcodedPasswords |
Unresolved Classes | Classes/UnresolvedClasses |
Useless Constructor | Classes/UselessConstructor |
Implement Is For Interface | Classes/ImplementIsForInterface |
Use const | Constants/ConstRecommended |
Unresolved Use | Namespaces/UnresolvedUse |
Unused Constants | Constants/UnusedConstants |
Undefined Parent | Classes/UndefinedParentMP |
Undefined static:: Or self:: | Classes/UndefinedStaticMP |
Accessing Private | Classes/AccessPrivate |
Access Protected Structures | Classes/AccessProtected |
Parent, Static Or Self Outside Class | Classes/PssWithoutClass |
list() May Omit Variables | Structures/ListOmissions |
Or Die | Structures/OrDie |
Unreachable Code | Structures/UnreachableCode |
Written Only Variables | Variables/WrittenOnlyVariable |
Must Return Methods | Functions/MustReturn |
Empty Instructions | Structures/EmptyLines |
Unused Methods | Classes/UnusedMethods |
Overwritten Exceptions | Exceptions/OverwriteException |
Foreach Reference Is Not Modified | Structures/ForeachReferenceIsNotModified |
Direct Injection | Security/DirectInjection |
Don't Change Incomings | Structures/NoChangeIncomingVariables |
Compared Comparison | Structures/ComparedComparison |
Useless Return | Functions/UselessReturn |
Unused Classes | Classes/UnusedClass |
Unpreprocessed Values | Structures/Unpreprocessed |
Undefined Properties | Classes/UndefinedProperty |
Short Open Tags | Php/ShortOpenTagRequired |
Strict Comparison With Booleans | Structures/BooleanStrictComparison |
Lone Blocks | Structures/LoneBlock |
$this Is Not For Static Methods | Classes/ThisIsNotForStatic |
Avoid sleep()/usleep() | Security/NoSleep |
Global Usage | Structures/GlobalUsage |
PHP Keywords As Names | Php/ReservedNames |
Logical Should Use Symbolic Operators | Php/LogicalInLetters |
Could Use self | Classes/ShouldUseSelf |
Catch Overwrite Variable | Structures/CatchShadowsVariable |
Deep Definitions | Functions/DeepDefinitions |
Constant Class | Classes/ConstantClass |
Repeated print() | Structures/RepeatedPrint |
Avoid Parenthesis | Structures/PrintWithoutParenthesis |
Objects Don't Need References | Structures/ObjectReferences |
Locally Unused Property | Classes/LocallyUnusedProperty |
Lost References | Variables/LostReferences |
Constants Created Outside Its Namespace | Constants/CreatedOutsideItsNamespace |
Fully Qualified Constants | Namespaces/ConstantFullyQualified |
Never Used Properties | Classes/PropertyNeverUsed |
No Real Comparison | Type/NoRealComparison |
Should Use Local Class | Classes/ShouldUseThis |
parse_str() Warning | Security/parseUrlWithoutParameters |
No Direct Call To Magic Method | Classes/DirectCallToMagicMethod |
String May Hold A Variable | Type/StringHoldAVariable |
Echo With Concat | Structures/EchoWithConcat |
Unused Global | Structures/UnusedGlobal |
Useless Global | Structures/UselessGlobal |
Preprocessable | Structures/ShouldPreprocess |
Useless Final | Classes/UselessFinal |
Use Constant | Structures/UseConstant |
Useless Unset | Structures/UselessUnset |
Buried Assignation | Structures/BuriedAssignation |
No array_merge() In Loops | Performances/ArrayMergeInLoops |
Useless Parenthesis | Structures/UselessParenthesis |
Unresolved Instanceof | Classes/UnresolvedInstanceof |
Use PHP Object API | Php/UseObjectApi |
Unthrown Exception | Exceptions/Unthrown |
Old Style __autoload() | Php/oldAutoloadUsage |
Altering Foreach Without Reference | Structures/AlteringForeachWithoutReference |
Magic Visibility | Classes/toStringPss |
Use Pathinfo | Php/UsePathinfo |
Should Use Constants | Functions/ShouldUseConstants |
Hash Algorithms | Php/HashAlgos |
Avoid Those Hash Functions | Security/AvoidThoseCrypto |
No Parenthesis For Language Construct | Structures/NoParenthesisForLanguageConstruct |
Unused Label | Structures/UnusedLabel |
No Hardcoded Path | Structures/NoHardcodedPath |
No Hardcoded Port | Structures/NoHardcodedPort |
Use Constant As Arguments | Functions/UseConstantAsArguments |
Implied If | Structures/ImpliedIf |
Overwritten Literals | Variables/OverwrittenLiterals |
Assign Default To Properties | Classes/MakeDefault |
No Public Access | Classes/NoPublicAccess |
Should Chain Exception | Structures/ShouldChainException |
Unused Interfaces | Interfaces/UnusedInterfaces |
Useless Interfaces | Interfaces/UselessInterfaces |
Undefined Interfaces | Interfaces/UndefinedInterfaces |
Concrete Visibility | Interfaces/ConcreteVisibility |
Double Instructions | Structures/DoubleInstruction |
Should Use Prepared Statement | Security/ShouldUsePreparedStatement |
Hash Algorithms Incompatible With PHP 5.3 | Php/HashAlgos53 |
Hash Algorithms Incompatible With PHP 5.4/5.5 | Php/HashAlgos54 |
Print And Die | Structures/PrintAndDie |
Unchecked Resources | Structures/UncheckedResources |
Unresolved Catch | Classes/UnresolvedCatch |
No Hardcoded Ip | Structures/NoHardcodedIp |
Variable Global | Structures/VariableGlobal |
Else If Versus Elseif | Structures/ElseIfElseif |
Reserved Keywords In PHP 7 | Php/ReservedKeywords7 |
Unset In Foreach | Structures/UnsetInForeach |
Could Be Static | Structures/CouldBeStatic |
Multiple Class Declarations | Classes/MultipleDeclarations |
Compare Hash | Security/CompareHash |
Empty Namespace | Namespaces/EmptyNamespace |
Could Use Short Assignation | Structures/CouldUseShortAssignation |
Useless Abstract Class | Classes/UselessAbstract |
Null On New | Classes/NullOnNew |
Static Loop | Structures/StaticLoop |
Pre-increment | Performances/PrePostIncrement |
Only Variable Returned By Reference | Structures/OnlyVariableReturnedByReference |
Indices Are Int Or String | Structures/IndicesAreIntOrString |
Should Typecast | Type/ShouldTypecast |
No Self Referencing Constant | Classes/NoSelfReferencingConstant |
No Direct Usage | Structures/NoDirectUsage |
Break Outside Loop | Structures/BreakOutsideLoop |
isset() With Constant | Structures/IssetWithConstant |
Avoid Substr() One | Structures/NoSubstrOne |
Anonymous Classes | Classes/Anonymous |
Double Assignation | Structures/DoubleAssignation |
Unicode Escape Syntax | Php/UnicodeEscapeSyntax |
New Functions In PHP 7.0 | Php/Php70NewFunctions |
PHP 7.0 Removed Functions | Php/Php70RemovedFunctions |
PHP 7.0 New Classes | Php/Php70NewClasses |
PHP 7.0 New Interfaces | Php/Php70NewInterfaces |
Empty List | Php/EmptyList |
List With Appends | Php/ListWithAppends |
Simple Global Variable | Php/GlobalWithoutSimpleVariable |
Parenthesis As Parameter | Php/ParenthesisAsParameter |
Foreach Don't Change Pointer | Php/ForeachDontChangePointer |
PHP5 Indirect Variable Expression | Variables/Php5IndirectExpression |
Php 7 Indirect Expression | Variables/Php7IndirectExpression |
Unicode Escape Partial | Php/UnicodeEscapePartial |
Define With Array | Php/DefineWithArray |
PHP 7.0 Removed Directives | Php/Php70RemovedDirective |
Useless Brackets | Structures/UselessBrackets |
preg_replace With Option e | Structures/pregOptionE |
eval() Without Try | Structures/EvalWithoutTry |
No List With String | Php/NoListWithString |
Setlocale() Uses Constants | Structures/SetlocaleNeedsConstants |
Usort Sorting In PHP 7.0 | Php/UsortSorting |
Hexadecimal In String | Type/HexadecimalString |
Relay Function | Functions/RelayFunction |
func_get_arg() Modified | Functions/funcGetArgModified |
Register Globals | Security/RegisterGlobals |
Avoid get_class() | Structures/UseInstanceof |
Silently Cast Integer | Type/SilentlyCastInteger |
PHP7 Dirname | Structures/PHP7Dirname |
Timestamp Difference | Structures/TimestampDifference |
Php7 Relaxed Keyword | Php/Php7RelaxedKeyword |
Unused Arguments | Functions/UnusedArguments |
Switch To Switch | Structures/SwitchToSwitch |
Wrong Parameter Type | Php/InternalParameterType |
Redefined Class Constants | Classes/RedefinedConstants |
Redefined Default | Classes/RedefinedDefault |
Wrong fopen() Mode | Php/FopenMode |
Safe Curl Options | Security/CurlOptions |
Negative Power | Structures/NegativePow |
Already Parents Interface | Interfaces/AlreadyParentsInterface |
Use random_int() | Php/BetterRand |
set_exception_handler() Warning | Php/SetExceptionHandlerPHP7 |
Can't Extend Final | Classes/CantExtendFinal |
Ternary In Concat | Structures/TernaryInConcat |
Using $this Outside A Class | Classes/UsingThisOutsideAClass |
Undefined Trait | Traits/UndefinedTrait |
No Hardcoded Hash | Structures/NoHardcodedHash |
Identical Conditions | Structures/IdenticalConditions |
Unkown Regex Options | Structures/UnknownPregOption |
Random Without Try | Structures/RandomWithoutTry |
No Choice | Structures/NoChoice |
Common Alternatives | Structures/CommonAlternatives |
Logical Mistakes | Structures/LogicalMistakes |
Exception Order | Exceptions/AlreadyCaught |
Uncaught Exceptions | Exceptions/UncaughtExceptions |
Undefined Caught Exceptions | Exceptions/CaughtButNotThrown |
Same Conditions In Condition | Structures/SameConditions |
Php 7.1 New Class | Php/Php71NewClasses |
Return True False | Structures/ReturnTrueFalse |
Indirect Injection | Security/IndirectInjection |
Useless Switch | Structures/UselessSwitch |
Could Use __DIR__ | Structures/CouldUseDir |
Should Use Coalesce | Php/ShouldUseCoalesce |
Make Global A Property | Classes/MakeGlobalAProperty |
List With Keys | Php/ListWithKeys |
If With Same Conditions | Structures/IfWithSameConditions |
Unserialize Second Arg | Security/UnserializeSecondArg |
Throw Functioncall | Exceptions/ThrowFunctioncall |
Use Instanceof | Classes/UseInstanceof |
List Short Syntax | Php/ListShortSyntax |
Results May Be Missing | Structures/ResultMayBeMissing |
Use Nullable Type | Php/UseNullableType |
Always Positive Comparison | Structures/NeverNegative |
PHP 7.1 Removed Directives | Php/Php71RemovedDirective |
New Functions In PHP 7.1 | Php/Php71NewFunctions |
Multiple Exceptions Catch() | Exceptions/MultipleCatch |
Empty Blocks | Structures/EmptyBlocks |
Throw In Destruct | Classes/ThrowInDestruct |
Unused Protected Methods | Classes/UnusedProtectedMethods |
Use System Tmp | Structures/UseSystemTmp |
Dependant Trait | Traits/DependantTrait |
Hidden Use Expression | Namespaces/HiddenUse |
Should Make Alias | Namespaces/ShouldMakeAlias |
Multiple Identical Trait Or Interface | Classes/MultipleTraitOrInterface |
Multiple Alias Definitions | Namespaces/MultipleAliasDefinitions |
Nested Ifthen | Structures/NestedIfthen |
Cast To Boolean | Structures/CastToBoolean |
Failed Substr Comparison | Structures/FailingSubstrComparison |
Should Make Ternary | Structures/ShouldMakeTernary |
Unused Returned Value | Functions/UnusedReturnedValue |
Modernize Empty With Expression | Structures/ModernEmpty |
Use Positive Condition | Structures/UsePositiveCondition |
Drop Else After Return | Structures/DropElseAfterReturn |
Use Class Operator | Classes/UseClassOperator |
Don't Echo Error | Security/DontEchoError |
Useless Casting | Structures/UselessCasting |
No isset() With empty() | Structures/NoIssetWithEmpty |
Useless Check | Structures/UselessCheck |
Bail Out Early | Structures/BailOutEarly |
PHP 7.1 Microseconds | Php/Php71microseconds |
Dont Change The Blind Var | Structures/DontChangeBlindKey |
Rethrown Exceptions | Exceptions/Rethrown |
Avoid Using stdClass | Php/UseStdclass |
Invalid Octal In String | Type/OctalInString |
Too Many Local Variables | Functions/TooManyLocalVariables |
Illegal Name For Method | Classes/WrongName |
Class Should Be Final By Ocramius | Classes/FinalByOcramius |
No String With Append | Php/NoStringWithAppend |
Long Arguments | Structures/LongArguments |
Assigned Twice | Variables/AssignedTwiceOrMore |
PHP 7.2 Deprecations | Php/Php72Deprecation |
PHP 7.2 Removed Functions | Php/Php72RemovedFunctions |
No Boolean As Default | Functions/NoBooleanAsDefault |
Forgotten Thrown | Exceptions/ForgottenThrown |
Multiple Alias Definitions Per File | Namespaces/MultipleAliasDefinitionPerFile |
__DIR__ Then Slash | Structures/DirThenSlash |
self, parent, static Outside Class | Classes/NoPSSOutsideClass |
Used Once Property | Classes/UsedOnceProperty |
Property Used In One Method Only | Classes/PropertyUsedInOneMethodOnly |
No Need For Else | Structures/NoNeedForElse |
Should Use session_regenerateid() | Security/ShouldUseSessionRegenerateId |
Strange Name For Variables | Variables/StrangeName |
Strange Name For Constants | Constants/StrangeName |
Encoded Simple Letters | Security/EncodedLetters |
Too Many Finds | Classes/TooManyFinds |
Should Use SetCookie() | Php/UseSetCookie |
Set Cookie Safe Arguments | Security/SetCookieArgs |
Check All Types | Structures/CheckAllTypes |
Missing Cases In Switch | Structures/MissingCases |
New Functions In PHP 7.2 | Php/Php72NewFunctions |
New Constants In PHP 7.2 | Php/Php72NewConstants |
Group Use Declaration | Php/GroupUseDeclaration |
Repeated Regex | Structures/RepeatedRegex |
No Class In Global | Php/NoClassInGlobal |
Crc32() Might Be Negative | Php/Crc32MightBeNegative |
Could Use str_repeat() | Structures/CouldUseStrrepeat |
Suspicious Comparison | Structures/SuspiciousComparison |
Strings With Strange Space | Type/StringWithStrangeSpace |
No Empty Regex | Structures/NoEmptyRegex |
Alternative Syntax Consistence | Structures/AlternativeConsistenceByFile |
Randomly Sorted Arrays | Arrays/RandomlySortedLiterals |
Only Variable Passed By Reference | Functions/OnlyVariablePassedByReference |
No Return Used | Functions/NoReturnUsed |
No Reference On Left Side | Structures/NoReferenceOnLeft |
Implemented Methods Are Public | Classes/ImplementedMethodsArePublic |
Mixed Concat And Interpolation | Structures/MixedConcatInterpolation |
New Functions In PHP 7.3 | Php/Php73NewFunctions |
Too Many Injections | Classes/TooManyInjections |
Could Make A Function | Functions/CouldCentralize |
Forgotten Interface | Interfaces/CouldUseInterface |
Cant Inherit Abstract Method | Classes/CantInheritAbstractMethod |
Avoid Optional Properties | Classes/AvoidOptionalProperties |
No Return Or Throw In Finally | Structures/NoReturnInFinally |
Mkdir Default | Security/MkdirDefault |
Mismatched Ternary Alternatives | Structures/MismatchedTernary |
Mismatched Default Arguments | Functions/MismatchedDefaultArguments |
Mismatched Typehint | Functions/MismatchedTypehint |
Scalar Or Object Property | Classes/ScalarOrObjectProperty |
Group Use Trailing Comma | Php/GroupUseTrailingComma |
Assign With And | Php/AssignAnd |
No Magic With Array | Classes/NoMagicWithArray |
PHP 7.2 Object Keyword | Php/Php72ObjectKeyword |
Child Class Removes Typehint | Classes/ChildRemoveTypehint |
No Substr Minus One | Php/NoSubstrMinusOne |
Logical To in_array | Performances/LogicalToInArray |
Pathinfo() Returns May Vary | Php/PathinfoReturns |
Switch Fallthrough | Structures/Fallthrough |
Upload Filename Injection | Security/UploadFilenameInjection |
Always Anchor Regex | Security/AnchorRegex |
Multiple Type Variable | Structures/MultipleTypeVariable |
Is Actually Zero | Structures/IsZero |
Unconditional Break In Loop | Structures/UnconditionLoopBreak |
Session Lazy Write | Security/SessionLazyWrite |
Could Be Else | Structures/CouldBeElse |
Next Month Trap | Structures/NextMonthTrap |
Printf Number Of Arguments | Structures/PrintfArguments |
Ambiguous Static | Classes/AmbiguousStatic |
Don't Send $this In Constructor | Classes/DontSendThisInConstructor |
Integer As Property | Classes/IntegerAsProperty |
No get_class() With Null | Structures/NoGetClassNull |
Php 7.2 New Class | Php/Php72NewClasses |
Avoid set_error_handler $context Argument | Php/AvoidSetErrorHandlerContextArg |
Hash Will Use Objects | Php/HashUsesObjects |
Can't Count Non-Countable | Structures/CanCountNonCountable |
Missing New ? | Structures/MissingNew |
Unknown Pcre2 Option | Php/UnknownPcre2Option |
Parent First | Classes/ParentFirst |
Invalid Regex | Structures/InvalidRegex |
Use Named Boolean In Argument Definition | Functions/AvoidBooleanArgument |
Same Variables Foreach | Structures/AutoUnsetForeach |
Never Used Parameter | Functions/NeverUsedParameter |
Identical On Both Sides | Structures/IdenticalOnBothSides |
Identical Consecutive Expression | Structures/IdenticalConsecutive |
No Reference For Ternary | Php/NoReferenceForTernary |
Sqlite3 Requires Single Quotes | Security/Sqlite3RequiresSingleQuotes |
No Net For Xml Load | Security/NoNetForXmlLoad |
Unused Inherited Variable In Closure | Functions/UnusedInheritedVariable |
Inclusion Wrong Case | Files/InclusionWrongCase |
Missing Include | Files/MissingInclude |
Useless Referenced Argument | Functions/UselessReferenceArgument |
Useless Catch | Exceptions/UselessCatch |
Possible Infinite Loop | Structures/PossibleInfiniteLoop |
List With Reference | Php/ListWithReference |
Test Then Cast | Structures/TestThenCast |
Foreach On Object | Php/ForeachObject |
Dynamic Library Loading | Security/DynamicDl |
PHP 7.3 Last Empty Argument | Php/PHP73LastEmptyArgument |
Property Could Be Local | Classes/PropertyCouldBeLocal |
Too Many Native Calls | Php/TooManyNativeCalls |
Redefined Private Property | Classes/RedefinedPrivateProperty |
Don't Unset Properties | Classes/DontUnsetProperties |
Strtr Arguments | Php/StrtrArguments |
Missing Parenthesis | Structures/MissingParenthesis |
Callback Needs Return | Functions/CallbackNeedsReturn |
Wrong Range Check | Structures/WrongRange |
Cant Instantiate Class | Classes/CantInstantiateClass |
strpos() Too Much | Performances/StrposTooMuch |
Typehinted References | Functions/TypehintedReferences |
Weak Typing | Classes/WeakType |
Configure Extract | Security/ConfigureExtract |
Compact Inexistant Variable | Php/CompactInexistant |
Method Signature Must Be Compatible | Classes/MethodSignatureMustBeCompatible |
Mismatch Type And Default | Functions/MismatchTypeAndDefault |
Flexible Heredoc | Php/FlexibleHeredoc |
Check JSON | Structures/CheckJson |
Const Visibility Usage | Classes/ConstVisibilityUsage |
move_uploaded_file Instead Of copy | Security/MoveUploadedFile |
Dont Mix ++ | Structures/DontMixPlusPlus |
Can't Throw Throwable | Exceptions/CantThrow |
Abstract Or Implements | Classes/AbstractOrImplements |
Incompatible Signature Methods | Classes/IncompatibleSignature |
Ambiguous Visibilities | Classes/AmbiguousVisibilities |
Hash Algorithms Incompatible With PHP 7.1- | Php/HashAlgos71 |
Undefined ::class | Classes/UndefinedStaticclass |
PHP 7.0 Scalar Typehints | Php/PHP70scalartypehints |
PHP 7.1 Scalar Typehints | Php/PHP71scalartypehints |
PHP 7.2 Scalar Typehints | Php/PHP72scalartypehints |
Case Insensitive Constants | Constants/CaseInsensitiveConstants |
Detect Current Class | Php/DetectCurrentClass |
Assert Function Is Reserved | Php/AssertFunctionIsReserved |
Could Be Abstract Class | Classes/CouldBeAbstractClass |
Continue Is For Loop | Structures/ContinueIsForLoop |
PHP 7.3 Removed Functions | Php/Php73RemovedFunctions |
Trailing Comma In Calls | Php/TrailingComma |
Must Call Parent Constructor | Php/MustCallParentConstructor |
Undefined Variable | Variables/UndefinedVariable |
Undefined Insteadof | Traits/UndefinedInsteadof |
Method Collision Traits | Traits/MethodCollisionTraits |
Class Could Be Final | Classes/CouldBeFinal |
Inconsistent Elseif | Structures/InconsistentElseif |
Only Variable For Reference | Functions/OnlyVariableForReference |
Direct Call To __clone() | Php/DirectCallToClone |
filter_input() As A Source | Security/FilterInputSource |
Wrong Access Style to Property | Classes/UndeclaredStaticProperty |
Invalid Pack Format | Structures/InvalidPackFormat |
No Return For Generator | Php/NoReturnForGenerator |
Repeated Interface | Interfaces/RepeatedInterface |
No Reference For Static Property | Php/NoReferenceForStaticProperty |
Don't Read And Write In One Expression | Structures/DontReadAndWriteInOneExpression |
idn_to_ascii() New Default | Php/IdnUts46 |
Should Yield With Key | Functions/ShouldYieldWithKey |
Safe HTTP Headers | Security/SafeHttpHeaders |
Useless Alias | Traits/UselessAlias |
Self Using Trait | Traits/SelfUsingTrait |
Method Could Be Static | Classes/CouldBeStatic |
Possible Missing Subpattern | Php/MissingSubpattern |
Assign And Compare | Structures/AssigneAndCompare |
Typed Property Usage | Php/TypedPropertyUsage |
Variable Is Not A Condition | Structures/NoVariableIsACondition |
String Initialization | Arrays/StringInitialization |
Insufficient Typehint | Functions/InsufficientTypehint |
PHP 8.0 Removed Functions | Php/Php80RemovedFunctions |
PHP 8.0 Removed Constants | Php/Php80RemovedConstant |
Typehint Must Be Returned | Functions/TypehintMustBeReturned |
Clone With Non-Object | Classes/CloneWithNonObject |
Check On __Call Usage | Classes/CheckOnCallUsage |
Integer Conversion | Security/IntegerConversion |
Avoid option arrays in constructors | Classes/AvoidOptionArrays |
Already Parents Trait | Traits/AlreadyParentsTrait |
Trait Not Found | Traits/TraitNotFound |
Casting Ternary | Structures/CastingTernary |
Concat Empty String | Structures/ConcatEmpty |
Concat And Addition | Php/ConcatAndAddition |
New Functions In PHP 7.4 | Php/Php74NewFunctions |
Unpacking Inside Arrays | Php/UnpackingInsideArrays |
Minus One On Error | Security/MinusOneOnError |
No Append On Source | Structures/NoAppendOnSource |
Memoize MagicCall | Performances/MemoizeMagicCall |
curl_version() Has No Argument | Structures/CurlVersionNow |
Php 7.4 New Class | Php/Php74NewClasses |
New Constants In PHP 7.4 | Php/Php74NewConstants |
Unused Class Constant | Classes/UnusedConstant |
Infinite Recursion | Structures/InfiniteRecursion |
Null Or Boolean Arrays | Arrays/NullBoolean |
Dependant Abstract Classes | Classes/DependantAbstractClass |
Wrong Returned Type | Functions/WrongReturnedType |
Generator Cannot Return | Functions/GeneratorCannotReturn |
Useless Type Check | Functions/UselessTypeCheck |
Overwritten Source And Value | Structures/ForeachSourceValue |
Avoid mb_dectect_encoding() | Php/AvoidMbDectectEncoding |
PHP 7.4 Removed Functions | Php/Php74RemovedFunctions |
mb_strrpos() Third Argument | Php/Php74mbstrrpos3rdArg |
array_key_exists() Works On Arrays | Php/ArrayKeyExistsWithObjects |
Reflection Export() Is Deprecated | Php/ReflectionExportIsDeprecated |
Unbinding Closures | Functions/UnbindingClosures |
Numeric Literal Separator | Php/IntegerSeparatorUsage |
Class Without Parent | Classes/NoParent |
Scalar Are Not Arrays | Php/ScalarAreNotArrays |
PHP 7.4 Reserved Keyword | Php/Php74ReservedKeyword |
No ENT_IGNORE | Security/NoEntIgnore |
No More Curly Arrays | Php/NoMoreCurlyArrays |
array_merge() And Variadic | Structures/ArrayMergeAndVariadic |
PHP 7.4 Constant Deprecation | Php/Php74Deprecation |
Implode() Arguments Order | Structures/ImplodeArgsOrder |
PHP 7.4 Removed Directives | Php/Php74RemovedDirective |
Hash Algorithms Incompatible With PHP 7.4- | Php/HashAlgos74 |
openssl_random_pseudo_byte() Second Argument | Structures/OpensslRandomPseudoByteSecondArg |
strip_tags Skips Closed Tag | Structures/StripTagsSkipsClosedTag |
No Spread For Hash | Arrays/NoSpreadForHash |
Max Level Of Nesting | Structures/MaxLevelOfIdentation |
Environnement Variable Usage | Dump/EnvironnementVariables |
Indentation Levels | Dump/IndentationLevels |
Nested Ternary Without Parenthesis | Php/NestedTernaryWithoutParenthesis |
Cyclomatic Complexity | Dump/CyclomaticComplexity |
Should Use Explode Args | Structures/ShouldUseExplodeArgs |
Use array_slice() | Performances/UseArraySlice |
PHP 74 New Directives | Php/Php74NewDirective |
Too Many Array Dimensions | Arrays/TooManyDimensions |
Coalesce And Concat | Structures/CoalesceAndConcat |
Constant Comparison | Structures/AlwaysFalse |
Incompatible Signature Methods With Covariance | Classes/IncompatibleSignature74 |
Interfaces Is Not Implemented | Interfaces/IsNotImplemented |
No Literal For Reference | Functions/NoLiteralForReference |
Interfaces Don't Ensure Properties | Interfaces/NoGaranteeForPropertyConstant |
Collect Literals | Dump/CollectLiterals |
No Weak SSL Crypto | Security/NoWeakSSLCrypto |
Collect Parameter Counts | Dump/CollectParameterCounts |
Collect Local Variable Counts | Dump/CollectLocalVariableCounts |
Non Nullable Getters | Classes/NonNullableSetters |
Dump/DereferencingLevels | Dump/DereferencingLevels |
Too Many Dereferencing | Classes/TooManyDereferencing |
Foreach() Favorite | Dump/CollectForeachFavorite |
Cant Implement Traversable | Interfaces/CantImplementTraversable |
Is_A() With String | Php/IsAWithString |
Mbstring Unknown Encoding | Structures/MbstringUnknownEncoding |
Collect Mbstring Encodings | Dump/CollectMbstringEncodings |
Filter To add_slashes() | Php/FilterToAddSlashes |
Mbstring Third Arg | Structures/MbstringThirdArg |
Typehinting Stats | Dump/TypehintingStats |
Merge If Then | Structures/MergeIfThen |
Wrong Type With Call | Functions/WrongTypeWithCall |
Dump/Inclusions | Dump/Inclusions |
Typehint Order | Dump/Typehintorder |
Dump/NewOrder | Dump/NewOrder |
Collect Class Interface Counts | Dump/CollectClassInterfaceCounts |
Collect Class Depth | Dump/CollectClassDepth |
Collect Class Children Count | Dump/CollectClassChildren |
Not Equal Is Not !== | Structures/NotEqual |
Coalesce Equal | Php/CoalesceEqual |
Constant Order | Dump/ConstantOrder |
Php 8.0 Variable Syntax Tweaks | Php/Php80VariableSyntax |
New Functions In PHP 8.0 | Php/Php80NewFunctions |
Dont Collect Void | Functions/DontUseVoid |
Php 8.0 Only TypeHints | Php/Php80OnlyTypeHints |
Union Typehint | Php/Php80UnionTypehint |
Wrong Typed Property Init | Classes/WrongTypedPropertyInit |
Signature Trailing Comma | Php/SignatureTrailingComma |
Hidden Nullable | Classes/HiddenNullable |
Fn Argument Variable Confusion | Functions/FnArgumentVariableConfusion |
Missing Abstract Method | Classes/MissingAbstractMethod |
Throw Was An Expression | Php/ThrowWasAnExpression |
Keep Files Access Restricted | Security/KeepFilesRestricted |
Check Crypto Key Length | Security/CryptoKeyLength |
Undefined Constant Name | Variables/UndefinedConstantName |
Using Deprecated Method | Functions/UsingDeprecated |
Collect Property Counts | Dump/CollectPropertyCounts |
Collect Method Counts | Dump/CollectMethodCounts |
Collect Class Constant Counts | Dump/CollectClassConstantCounts |
Cyclic References | Classes/CyclicReferences |
Double Object Assignation | Structures/DoubleObjectAssignation |
Wrong Argument Type | Functions/WrongArgumentType |
Call Order | Dump/CallOrder |
Php/UseMatch | Php/UseMatch |
Mismatch Properties Typehints | Classes/MismatchProperties |
Collect Parameter Names | Dump/CollectParameterNames |
No Need For Triple Equal | Structures/NoNeedForTriple |
Array_merge Needs Array Of Arrays | Structures/ArrayMergeArrayArray |
Wrong Type For Native PHP Function | Php/WrongTypeForNativeFunction |
Catch Undefined Variable | Exceptions/CatchUndefinedVariable |
Dump/FossilizedMethods | Dump/FossilizedMethods |