Concentrated issues

Here is the list of the lines that generated the most issues.

File Count Analysis
/src/Composer/Command/CreateProjectCommand.php:18026
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Mismatched Default Arguments
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Modified Typed Parameter
/src/Composer/Command/CreateProjectCommand.php:33921
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Unused Parameter
  •   Mismatched Default Arguments
  •   Used Once Variables (In Scope)
  •   No Null For Index
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Modified Typed Parameter
/src/Composer/Util/Filesystem.php:52715
  •   No Null For Native PHP Functions
  •   strpos() Too Much
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Wrong Type For Native PHP Function
  •   Could Make A Function
  •   Avoid Substr() One
/src/Composer/Command/PackageDiscoveryTrait.php:9012
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Unused Parameter
  •   Undefined Interfaces
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
/src/Composer/Factory.php:28412
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Mismatched Default Arguments
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/Composer/PHPStan/RuleReasonDataReturnTypeExtension.php:4612
  •   Should Use Local Class
  •   Unused Parameter
  •   Undefined Interfaces
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/Composer/Console/Application.php:39211
  •   Unsupported Types With Operators
  •   Too Many Native Calls
  •   Timestamp Difference
  •   Uses Default Values
  •   Wrong Type With Call
  •   Could Make A Function
/src/Composer/Factory.php:58511
  •   No Null For Native PHP Functions
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Wrong Argument Type
  •   Mismatched Typehint
  •   Could Make A Function
/src/Composer/IO/BufferIO.php:3311
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   Undefined Class Constants
  •   StandaloneType True False Null
  •   Parent First
  •   Could Inject Parameter
  •   Never Called Parameter
/src/Composer/Factory.php:57210
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Method Could Be Static
/src/Composer/Repository/ComposerRepository.php:145810
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
/src/Composer/Util/Git.php:4810
  •   No Default For Referenced Parameter
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Unused Parameter
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/Composer/Command/BaseDependencyCommand.php:559
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Undefined Interfaces
  •   Undefined Classes
  •   Could Inject Parameter
/src/Composer/Console/Application.php:1489
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   Undefined Interfaces
  •   Undefined Classes
  •   Could Inject Parameter
  •   Missing Some Returntype
/src/Composer/Console/Application.php:3559
  •   Double Checks
  •   Merge If Then
  •   Check JSON
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Wrong Type For Native PHP Function
  •   Could Make A Function
/src/Composer/Console/Application.php:5039
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Never Called Parameter
/src/Composer/DependencyResolver/Rule.php:4449
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Downloader/FileDownloader.php:1219
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Too Many Local Variables
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Different Argument Counts
/src/Composer/Downloader/PathDownloader.php:429
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Different Argument Counts
  •   Method Could Be Static
/src/Composer/Downloader/ZipDownloader.php:439
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Different Argument Counts
/src/Composer/Util/ProcessExecutor.php:1029
  •   No Default For Referenced Parameter
  •   Use Named Boolean In Argument Definition
  •   Unused Parameter
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/Composer/Autoload/AutoloadGenerator.php:1768
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Mismatched Typehint
  •   StandaloneType True False Null
/src/Composer/DependencyResolver/DefaultPolicy.php:1678
  •   No Null For Native PHP Functions
  •   Wrong Parameter Type
  •   Buried Assignation
  •   Iffectations
  •   Useless Parenthesis
  •   Uses Default Values
  •   Wrong Type For Native PHP Function
  •   Could Make A Function
/src/Composer/IO/NullIO.php:1098
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/src/Composer/Installer/ProjectInstaller.php:1028
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Must Return Methods
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Installer/ProjectInstaller.php:1108
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Must Return Methods
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Package/Loader/RootPackageLoader.php:748
  •   Assumptions
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Too Many Local Variables
  •   Mismatched Default Arguments
  •   Use ::Class Operator
  •   StandaloneType True False Null
  •   Different Argument Counts
/src/Composer/Package/Version/VersionSelector.php:728
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/Composer/Util/HttpDownloader.php:3968
  •   Unsupported Types With Operators
  •   Cast To Boolean
  •   Weak Type With Array
  •   No Null For Index
  •   Indices Are Int Or String
  •   Ambiguous Array Index
  •   Non Integer Nor String As Index
  •   Wrong Type Returned
/src/Composer/Util/NoProxyPattern.php:1958
  •   Class-typed References
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Unused Parameter
  •   StandaloneType True False Null
  •   Modified Typed Parameter
  •   Missing Some Returntype
/src/Composer/Command/ConfigCommand.php:9367
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
/src/Composer/Command/PackageDiscoveryTrait.php:757
  •   Double Checks
  •   Merge If Then
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Could Make A Function
/src/Composer/Command/PackageDiscoveryTrait.php:2777
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
/src/Composer/Command/ShowCommand.php:7167
  •   No Null For Native PHP Functions
  •   Variable Is Not A Condition
  •   Useless Parenthesis
  •   Uses Default Values
  •   Wrong Type With Call
  •   Wrong Type For Native PHP Function
/src/Composer/Command/ShowCommand.php:7197
  •   No Null For Native PHP Functions
  •   Variable Is Not A Condition
  •   Useless Parenthesis
  •   Uses Default Values
  •   Wrong Type With Call
  •   Wrong Type For Native PHP Function
/src/Composer/Command/ShowCommand.php:7287
  •   No Null For Native PHP Functions
  •   Variable Is Not A Condition
  •   Useless Parenthesis
  •   Uses Default Values
  •   Wrong Type With Call
  •   Wrong Type For Native PHP Function
/src/Composer/Command/ShowCommand.php:7307
  •   No Null For Native PHP Functions
  •   Variable Is Not A Condition
  •   Useless Parenthesis
  •   Uses Default Values
  •   Wrong Type With Call
  •   Wrong Type For Native PHP Function
/src/Composer/DependencyResolver/Problem.php:1947
  •   Use Named Boolean In Argument Definition
  •   Too Many Local Variables
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
/src/Composer/DependencyResolver/Problem.php:3737
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Undefined Classes
  •   Mismatched Typehint
  •   StandaloneType True False Null
/src/Composer/DependencyResolver/RuleSetGenerator.php:597
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/src/Composer/DependencyResolver/RuleSetGenerator.php:1127
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/src/Composer/Downloader/ArchiveDownloader.php:557
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Downloader/FileDownloader.php:3487
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Downloader/FileDownloader.php:4167
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Downloader/PathDownloader.php:787
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Downloader/PathDownloader.php:1647
  •   Incompatible Signature Methods With Covariance
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Installer/ProjectInstaller.php:787
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/Installer/ProjectInstaller.php:867
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/Package/Loader/ValidatingArrayLoader.php:3027
  •   Bail Out Early
  •   Buried Assignation
  •   Iffectations
  •   Weak Type With Array
  •   Uses Default Values
  •   Used Once Variables (In Scope)
/src/Composer/Package/Version/VersionBumper.php:457
  •   Should Use Local Class
  •   Too Many Local Variables
  •   Undefined Interfaces
  •   Undefined Classes
  •   Useless Argument
  •   Method Could Be Static
  •   Missing Some Returntype
/src/Composer/Repository/ComposerRepository.php:2927
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Repository/InstalledRepository.php:897
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/Util/ProcessExecutor.php:737
  •   No Default For Referenced Parameter
  •   Unused Parameter
  •   Mismatched Default Arguments
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/Composer/Util/RemoteFilesystem.php:787
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Typehint
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Never Called Parameter
/src/Composer/Util/RemoteFilesystem.php:5137
  •   No Default For Referenced Parameter
  •   Should Use Local Class
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Command/ArchiveCommand.php:1736
  •   No Null For Native PHP Functions
  •   Wrong Parameter Type
  •   Wrong Type For Native PHP Function
  •   Useless Type Casting
  •   Undefined Variable
  •   Could Make A Function
/src/Composer/Command/BaseCommand.php:2976
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   Method Could Be Static
/src/Composer/Command/BaseCommand.php:4046
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   Useless Argument
  •   Could Inject Parameter
  •   Method Could Be Static
/src/Composer/Command/CreateProjectCommand.php:4296
  •   No Null For Native PHP Functions
  •   Wrong Parameter Type
  •   Buried Assignation
  •   Iffectations
  •   Useless Parenthesis
  •   Wrong Type For Native PHP Function
/src/Composer/Command/InitCommand.php:646
  •   Uses Default Values
  •   Wrong Type With Call
  •   Wrong Type For Native PHP Function
  •   Wrong Argument Type
  •   Undefined Class Constants
  •   Could Make A Function
/src/Composer/Command/PackageDiscoveryTrait.php:606
  •   Unsupported Types With Operators
  •   No Null For Index
  •   Indices Are Int Or String
  •   Ambiguous Array Index
  •   Non Integer Nor String As Index
  •   Double Object Assignation
/src/Composer/Command/SelfUpdateCommand.php:5496
  •   Should Use Local Class
  •   Unused Parameter
  •   Useless Argument
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Method Could Be Static
/src/Composer/Config.php:4236
  •   Buried Assignation
  •   Iffectations
  •   Useless Parenthesis
  •   Weak Type With Array
  •   Uses Default Values
  •   Strict Comparison With Booleans
/src/Composer/DependencyResolver/Operation/UninstallOperation.php:526
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/src/Composer/DependencyResolver/Operation/UpdateOperation.php:716
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/src/Composer/DependencyResolver/Pool.php:2026
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Insufficient Typehint
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/DependencyResolver/PoolBuilder.php:6556
  •   Nested Ifthen
  •   Buried Assignation
  •   Iffectations
  •   Wrong Type For Native PHP Function
  •   Mismatched Typehint
  •   Could Make A Function
/src/Composer/IO/ConsoleIO.php:1866
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Mismatched Typehint
  •   StandaloneType True False Null
/src/Composer/IO/ConsoleIO.php:1946
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Mismatched Typehint
  •   StandaloneType True False Null
/src/Composer/IO/NullIO.php:796
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Empty Function
  •   StandaloneType True False Null
/src/Composer/IO/NullIO.php:866
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Empty Function
  •   StandaloneType True False Null
/src/Composer/IO/NullIO.php:1176
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Empty Function
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/IO/NullIO.php:1256
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Wrong Type With Default
  •   Method Could Be Static
/src/Composer/Installer/ProjectInstaller.php:946
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/Package/Loader/ValidatingArrayLoader.php:636
  •   Assumptions
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   Use ::Class Operator
  •   Could Inject Parameter
  •   Never Called Parameter
/src/Composer/Package/Version/VersionSelector.php:2396
  •   Bail Out Early
  •   No Need For Else
  •   Weak Type With Array
  •   Uses Default Values
  •   Undefined Classes
  •   Drop Else After Return
/src/Composer/Repository/InstalledRepository.php:1906
  •   Nested Ifthen
  •   Bail Out Early
  •   Unresolved Classes
  •   Uses Default Values
  •   Undefined Classes
  •   Strict Comparison With Booleans
/src/Composer/Repository/Vcs/PerforceDriver.php:1616
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Typehint
  •   Could Inject Parameter
/src/Composer/Util/Filesystem.php:5766
  •   No Null For Native PHP Functions
  •   strpos() Too Much
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Wrong Type For Native PHP Function
  •   Could Make A Function
/src/Composer/Util/Git.php:256
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Unfinished Object
  •   Wrong Type With Default
  •   Property Could Be Local
/src/Composer/Util/Hg.php:256
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Unfinished Object
  •   Wrong Type With Default
  •   Property Could Be Local
/src/Composer/Util/RemoteFilesystem.php:4216
  •   Unsupported Types With Operators
  •   No Null For Native PHP Functions
  •   Variable Is Not A Condition
  •   strpos() Too Much
  •   Uses Default Values
  •   Wrong Type For Native PHP Function