Concentrated issues

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

File Count Analysis
/src/Composer/Command/CreateProjectCommand.php:18023
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Modified Typed Parameter
/src/Composer/Command/CreateProjectCommand.php:33121
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Use Named Boolean In Argument Definition
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   No Null For Index
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Modified Typed Parameter
/src/Composer/Util/Filesystem.php:56715
  •   strpos() Too Much
  •   Wrong Parameter Type
  •   Uses Default Values
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Could Make A Function
  •   Avoid Substr() One
/src/Composer/PHPStan/RuleReasonDataReturnTypeExtension.php:4613
  •   Unused Public Methods
  •   Should Use Local Class
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Interfaces
  •   Undefined Classes
  •   Method Could Be Static
/src/Composer/PHPStan/ConfigReturnTypeExtension.php:6412
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/Command/PackageDiscoveryTrait.php:9711
  •   Max Level Of Nesting
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Use Named Boolean In Argument Definition
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/IO/BufferIO.php:3011
  •   Undefined Class Constants
  •   Mismatched Type
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Parent First
  •   Could Inject Parameter
  •   Never Called Parameter
/src/Composer/Command/BaseCommand.php:30110
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Console/Application.php:14010
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   Undefined Interfaces
  •   Undefined Classes
  •   Could Inject Parameter
  •   Missing Some Returntype
/src/Composer/Downloader/PathDownloader.php:4210
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Different Argument Counts
  •   Method Could Be Static
/src/Composer/Autoload/AutoloadGenerator.php:1779
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Use Named Boolean In Argument Definition
  •   Ambiguous Static
  •   Mismatched Type
  •   StandaloneType True False Null
/src/Composer/Command/BaseDependencyCommand.php:589
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   Could Inject Parameter
/src/Composer/Console/Application.php:3689
  •   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:5459
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   StandaloneType True False Null
  •   Never Called Parameter
/src/Composer/DependencyResolver/DefaultPolicy.php:1669
  •   Buried Assignation
  •   Wrong Parameter Type
  •   Useless Parenthesis
  •   Uses Default Values
  •   No Null For Native PHP Functions
  •   Iffectations
  •   Wrong Type For Native PHP Function
  •   Could Make A Function
  •   Preprocessable
/src/Composer/Downloader/PathDownloader.php:819
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Downloader/ZipDownloader.php:439
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Different Argument Counts
/src/Composer/Factory.php:2819
  •   Double Checks
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
  •   StandaloneType True False Null
  •   Could Inject Parameter
/src/Composer/Factory.php:5779
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Method Could Be Static
/src/Composer/Package/Archiver/PharArchiver.php:419
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Could Inject Parameter
  •   Method Could Be Static
/src/Composer/Repository/ComposerRepository.php:14579
  •   Max Level Of Nesting
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   StandaloneType True False Null
  •   Could Inject Parameter
/src/Composer/Downloader/ArchiveDownloader.php:558
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Downloader/FileDownloader.php:1228
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Different Argument Counts
/src/Composer/Downloader/PathDownloader.php:1738
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Installer/ProjectInstaller.php:1028
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Must Return Methods
  •   Undefined Interfaces
  •   Undefined Classes
  •   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
  •   Must Return Methods
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Package/Loader/RootPackageLoader.php:798
  •   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/Loader/ValidatingArrayLoader.php:3298
  •   Bail Out Early
  •   Written Only Variables
  •   Buried Assignation
  •   Uses Default Values
  •   Used Once Variables (In Scope)
  •   Weak Type With Array
  •   Iffectations
/src/Composer/Repository/ArrayRepository.php:2668
  •   Insufficient Type
  •   Should Use Local Class
  •   Mismatched Type
  •   Could Inject Parameter
  •   Modified Typed Parameter
  •   Method Could Be Static
/src/Composer/Command/BaseCommand.php:3227
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   Method Could Be Static
/src/Composer/Command/PackageDiscoveryTrait.php:827
  •   Double Checks
  •   Merge If Then
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Could Make A Function
/src/Composer/DependencyResolver/Problem.php:4487
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/DependencyResolver/Rule.php:4447
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/Downloader/FileDownloader.php:3477
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Downloader/FileDownloader.php:4237
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   Different Argument Counts
/src/Composer/Installer/LibraryInstaller.php:2677
  •   Uses Default Values
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Undefined Classes
  •   Could Make A Function
  •   Preprocessable
/src/Composer/Installer/ProjectInstaller.php:627
  •   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: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/Repository/ComposerRepository.php:2927
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   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
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/Util/Git.php:1037
  •   No Default For Referenced Parameter
  •   Max Level Of Nesting
  •   No Boolean As Default
  •   Useless Referenced Argument
  •   Too Many Local Variables
  •   Use Named Boolean In Argument Definition
  •   StandaloneType True False Null
/src/Composer/Util/HttpDownloader.php:3967
  •   Cast To Boolean
  •   Weak Type With Array
  •   No Null For Index
  •   Ambiguous Array Index
  •   Indices Are Int Or String
  •   Non Integer Nor String As Index
  •   Wrong Type Returned
/src/Composer/Util/NoProxyPattern.php:1957
  •   Class-typed References
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   StandaloneType True False Null
  •   Modified Typed Parameter
  •   Missing Some Returntype
/src/Composer/Util/RemoteFilesystem.php:767
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Never Called Parameter
/src/Composer/Util/RemoteFilesystem.php:5167
  •   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/ConfigCommand.php:9746
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
/src/Composer/Command/CreateProjectCommand.php:4356
  •   Written Only Variables
  •   Buried Assignation
  •   Wrong Parameter Type
  •   Useless Parenthesis
  •   Iffectations
  •   Wrong Type For Native PHP Function
/src/Composer/Command/PackageDiscoveryTrait.php:2846
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Could Inject Parameter
/src/Composer/Config.php:4396
  •   Buried Assignation
  •   Useless Parenthesis
  •   Uses Default Values
  •   Weak Type With Array
  •   Iffectations
  •   Strict Comparison With Booleans
/src/Composer/DependencyResolver/Operation/UninstallOperation.php:526
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Ambiguous Static
  •   Should Use Local Class
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/src/Composer/DependencyResolver/Operation/UpdateOperation.php:716
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Ambiguous Static
  •   Should Use Local Class
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/src/Composer/DependencyResolver/Pool.php:2026
  •   Insufficient Type
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Method Could Be Static
/src/Composer/IO/NullIO.php:796
  •   Unused Public Methods
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Empty Function
  •   StandaloneType True False Null
/src/Composer/IO/NullIO.php:866
  •   Unused Public Methods
  •   No Boolean As Default
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   Empty Function
  •   StandaloneType True False Null
/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
  •   Max Level Of Nesting
  •   Assumptions
  •   Too Many Local Variables
  •   Use ::Class Operator
  •   Could Inject Parameter
  •   Never Called Parameter
/src/Composer/Package/Version/VersionBumper.php:476
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Undefined Interfaces
  •   Undefined Classes
  •   Method Could Be Static
  •   Missing Some Returntype
/src/Composer/Package/Version/VersionSelector.php:2446
  •   No Need For Else
  •   Bail Out Early
  •   Uses Default Values
  •   Weak Type With Array
  •   Undefined Classes
  •   Drop Else After Return
/src/Composer/Repository/PathRepository.php:1956
  •   Merge If Then
  •   Written Only Variables
  •   Buried Assignation
  •   Used Once Variables (In Scope)
  •   Iffectations
  •   Used Once Variables
/src/Composer/Repository/PlatformRepository.php:7426
  •   Constant Used Only Once
  •   Buried Assignation
  •   Undefined Variable
  •   Useless Instructions
  •   Undefined Classes
  •   Could Use self
/src/Composer/Util/Filesystem.php:6166
  •   strpos() Too Much
  •   Wrong Parameter Type
  •   Uses Default Values
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Could Make A Function
/src/Composer/Util/Http/CurlDownloader.php:1106
  •   False To Array Conversion
  •   Constant Used Only Once
  •   Buried Assignation
  •   Weak Type With Array
  •   Iffectations
  •   Could Make A Function
/src/Composer/Util/ProcessExecutor.php:4096
  •   Cast To Boolean
  •   Weak Type With Array
  •   No Null For Index
  •   Ambiguous Array Index
  •   Indices Are Int Or String
  •   Wrong Type Returned