/src/Composer/Command/CreateProjectCommand.php:180 | 23 | - 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:331 | 21 | - 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:567 | 15 | - 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:46 | 13 | - 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:64 | 12 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Interfaces
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Command/PackageDiscoveryTrait.php:97 | 11 | - 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:30 | 11 | - 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:301 | 10 | - 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:140 | 10 | - 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:42 | 10 | - 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:177 | 9 | - 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:58 | 9 | - 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:368 | 9 | - 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:545 | 9 | - 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:166 | 9 | - 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:81 | 9 | - 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:43 | 9 | - 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:281 | 9 | - 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:577 | 9 | - 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:41 | 9 | - 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:1457 | 9 | - 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:55 | 8 | - 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:122 | 8 | - 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:173 | 8 | - 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:102 | 8 | - 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:110 | 8 | - 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:79 | 8 | - 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:329 | 8 | - 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:266 | 8 | - Insufficient Type
- Should Use Local Class
- Mismatched Type
- Could Inject Parameter
- Modified Typed Parameter
- Method Could Be Static
|
/src/Composer/Command/BaseCommand.php:322 | 7 | - 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:82 | 7 | - Double Checks
- Merge If Then
- Check JSON
- Buried Assignation
- Uses Default Values
- Could Make A Function
|
/src/Composer/DependencyResolver/Problem.php:448 | 7 | - 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:444 | 7 | - 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:347 | 7 | - 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:423 | 7 | - 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:267 | 7 | - 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:62 | 7 | - 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:78 | 7 | - 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:86 | 7 | - 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:292 | 7 | - 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:89 | 7 | - 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:103 | 7 | - 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:396 | 7 | - 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:195 | 7 | - 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:76 | 7 | - 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:516 | 7 | - 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:974 | 6 | - 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:435 | 6 | - Written Only Variables
- Buried Assignation
- Wrong Parameter Type
- Useless Parenthesis
- Iffectations
- Wrong Type For Native PHP Function
|
/src/Composer/Command/PackageDiscoveryTrait.php:284 | 6 | - 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:439 | 6 | - Buried Assignation
- Useless Parenthesis
- Uses Default Values
- Weak Type With Array
- Iffectations
- Strict Comparison With Booleans
|
/src/Composer/DependencyResolver/Operation/UninstallOperation.php:52 | 6 | - 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:71 | 6 | - 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:202 | 6 | - Insufficient Type
- Should Use Local Class
- Undefined Interfaces
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/IO/NullIO.php:79 | 6 | - 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:86 | 6 | - 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:94 | 6 | - 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:63 | 6 | - Max Level Of Nesting
- Assumptions
- Too Many Local Variables
- Use ::Class Operator
- Could Inject Parameter
- Never Called Parameter
|
/src/Composer/Package/Version/VersionBumper.php:47 | 6 | - 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:244 | 6 | - 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:195 | 6 | - Merge If Then
- Written Only Variables
- Buried Assignation
- Used Once Variables (In Scope)
- Iffectations
- Used Once Variables
|
/src/Composer/Repository/PlatformRepository.php:742 | 6 | - Constant Used Only Once
- Buried Assignation
- Undefined Variable
- Useless Instructions
- Undefined Classes
- Could Use self
|
/src/Composer/Util/Filesystem.php:616 | 6 | - 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:110 | 6 | - False To Array Conversion
- Constant Used Only Once
- Buried Assignation
- Weak Type With Array
- Iffectations
- Could Make A Function
|
/src/Composer/Util/ProcessExecutor.php:409 | 6 | - Cast To Boolean
- Weak Type With Array
- No Null For Index
- Ambiguous Array Index
- Indices Are Int Or String
- Wrong Type Returned
|