/src/Composer/Command/CreateProjectCommand.php:180 | 25 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Too Many Local Variables
- Mismatched Default Arguments
- Mismatched Type
- Undefined Classes
- StandaloneType True False Null
- Could Inject Parameter
- Wrong Type With Default
- Modified Typed Parameter
|
/src/Composer/Command/CreateProjectCommand.php:331 | 22 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Too Many Local Variables
- Unused Parameter
- Used Once Variables (In Scope)
- Mismatched Default Arguments
- No Null For Index
- Mismatched Type
- 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
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
|
/src/Composer/IO/ConsoleIO.php:302 | 14 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Could Inject Parameter
- Wrong Type With Default
|
/src/Composer/Command/BaseCommand.php:301 | 13 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Default Arguments
- Mismatched Type
- Undefined Classes
- StandaloneType True False Null
- Wrong Type With Default
- Method Could Be Static
|
/src/Composer/PHPStan/RuleReasonDataReturnTypeExtension.php:46 | 13 | - Undefined Interfaces
- Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Composer/Factory.php:281 | 12 | - Double Checks
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Too Many Local Variables
- Mismatched Default Arguments
- Undefined Classes
- StandaloneType True False Null
- Could Inject Parameter
- Wrong Type With Default
|
/src/Composer/IO/NullIO.php:125 | 12 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Composer/PHPStan/ConfigReturnTypeExtension.php:64 | 12 | - Undefined Interfaces
- Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Command/PackageDiscoveryTrait.php:97 | 11 | - Undefined Interfaces
- Max Level Of Nesting
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Too Many Local Variables
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/IO/BufferIO.php:30 | 11 | - Undefined Interfaces
- Mismatched Type
- Undefined Classes
- Undefined Class Constants
- StandaloneType True False Null
- Parent First
- Could Inject Parameter
- Never Called Parameter
|
/src/Composer/IO/ConsoleIO.php:275 | 11 | - Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Undefined Classes
- Could Inject Parameter
- Wrong Type With Default
|
/src/Composer/Util/Git.php:103 | 11 | - 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
- Mismatched Type
- Undefined Classes
- StandaloneType True False Null
- Wrong Type With Default
|
/src/Composer/Util/ProcessExecutor.php:122 | 11 | - No Default For Referenced Parameter
- Use Named Boolean In Argument Definition
- Undefined Classes
- StandaloneType True False Null
- Could Inject Parameter
- Wrong Type With Default
|
/src/Composer/Console/Application.php:140 | 10 | - Undefined Interfaces
- Unused Public Methods
- Max Level Of Nesting
- Too Many Local Variables
- Undefined Classes
- Could Inject Parameter
- Missing Some Returntype
|
/src/Composer/Console/Application.php:542 | 10 | - Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Default Arguments
- Mismatched Type
- StandaloneType True False Null
- Never Called Parameter
|
/src/Composer/Downloader/PathDownloader.php:42 | 10 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- StandaloneType True False Null
- Different Argument Counts
- Method Could Be Static
|
/src/Composer/Factory.php:577 | 10 | - Use Named Boolean In Argument Definition
- No Boolean As Default
- Should Use Local Class
- Undefined Classes
- StandaloneType True False Null
- Could Inject Parameter
- Method Could Be Static
|
/src/Composer/IO/NullIO.php:109 | 10 | - Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Composer/Package/Version/VersionSelector.php:72 | 10 | - Max Level Of Nesting
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Too Many Local Variables
- Mismatched Type
- Undefined Classes
- StandaloneType True False Null
- Wrong Type With Default
|
/src/Composer/Autoload/AutoloadGenerator.php:177 | 9 | - Unused Public Methods
- Max Level Of Nesting
- Use Named Boolean In Argument Definition
- Ambiguous Static
- No Boolean As Default
- Too Many Local Variables
- Mismatched Type
- StandaloneType True False Null
|
/src/Composer/Command/BaseDependencyCommand.php:58 | 9 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Too Many Local Variables
- Undefined Classes
- Could Inject Parameter
|
/src/Composer/Console/Application.php:368 | 9 | - Double Checks
- Merge If Then
- Check JSON
- Nested Ifthen
- Buried Assignation
- Wrong Type For Native PHP Function
- Uses Default Values
- Could Make A Function
|
/src/Composer/DependencyResolver/DefaultPolicy.php:166 | 9 | - Wrong Parameter Type
- Useless Parenthesis
- Buried Assignation
- Iffectations
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Uses Default Values
- Could Make A Function
- Preprocessable
|
/src/Composer/Downloader/PathDownloader.php:81 | 9 | - Undefined Interfaces
- Unused Public Methods
- Max Level Of Nesting
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Different Argument Counts
|
/src/Composer/Downloader/ZipDownloader.php:43 | 9 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- StandaloneType True False Null
- Different Argument Counts
|
/src/Composer/Repository/ComposerRepository.php:1457 | 9 | - Max Level Of Nesting
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Default Arguments
- Mismatched Type
- StandaloneType True False Null
- Could Inject Parameter
|
/src/Composer/Downloader/ArchiveDownloader.php:55 | 8 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Different Argument Counts
|
/src/Composer/Downloader/FileDownloader.php:122 | 8 | - Undefined Interfaces
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- StandaloneType True False Null
- Different Argument Counts
|
/src/Composer/Downloader/PathDownloader.php:173 | 8 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Different Argument Counts
|
/src/Composer/IO/ConsoleIO.php:263 | 8 | - Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Could Inject Parameter
- Never Called Parameter
|
/src/Composer/Installer/ProjectInstaller.php:78 | 8 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Installer/ProjectInstaller.php:86 | 8 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Installer/ProjectInstaller.php:102 | 8 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Must Return Methods
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/Installer/ProjectInstaller.php:110 | 8 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Must Return Methods
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/Package/Loader/RootPackageLoader.php:74 | 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
- Buried Assignation
- Written Only Variables
- Used Once Variables (In Scope)
- Iffectations
- Weak Type With Array
- Uses Default Values
|
/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/Repository/InstalledRepository.php:89 | 8 | - Undefined Interfaces
- Max Level Of Nesting
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Util/ProcessExecutor.php:190 | 8 | - No Default For Referenced Parameter
- Use Named Boolean In Argument Definition
- Mismatched Default Arguments
- Undefined Classes
- StandaloneType True False Null
- Wrong Type With Default
- Missing Some Returntype
|
/src/Composer/Util/RemoteFilesystem.php:516 | 8 | - No Default For Referenced Parameter
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/Command/BaseCommand.php:322 | 7 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Should Use Local Class
- Undefined Classes
- Method Could Be Static
|
/src/Composer/Command/CreateProjectCommand.php:435 | 7 | - Wrong Parameter Type
- Useless Parenthesis
- Buried Assignation
- Written Only Variables
- Iffectations
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
|
/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/Command/ShowCommand.php:731 | 7 | - Variable Is Not A Condition
- Useless Parenthesis
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Wrong Type With Call
- Uses Default Values
|
/src/Composer/Command/ShowCommand.php:734 | 7 | - Variable Is Not A Condition
- Useless Parenthesis
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Wrong Type With Call
- Uses Default Values
|
/src/Composer/Command/ShowCommand.php:743 | 7 | - Variable Is Not A Condition
- Useless Parenthesis
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Wrong Type With Call
- Uses Default Values
|
/src/Composer/Command/ShowCommand.php:745 | 7 | - Variable Is Not A Condition
- Useless Parenthesis
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Wrong Type With Call
- Uses Default Values
|
/src/Composer/DependencyResolver/Problem.php:442 | 7 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Type
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/DependencyResolver/Rule.php:444 | 7 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Should Use Local Class
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/Downloader/DownloadManager.php:191 | 7 | - Use Named Boolean In Argument Definition
- No Boolean As Default
- Unused Parameter
- Written Only Variables
- Undefined Classes
- Wrong Type With Default
- Never Called Parameter
|
/src/Composer/Downloader/FileDownloader.php:347 | 7 | - Undefined Interfaces
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Different Argument Counts
|
/src/Composer/Downloader/FileDownloader.php:423 | 7 | - Undefined Interfaces
- Incompatible Signature Methods With Covariance
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Different Argument Counts
|
/src/Composer/IO/NullIO.php:79 | 7 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Empty Function
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/IO/NullIO.php:86 | 7 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Empty Function
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/IO/NullIO.php:101 | 7 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Undefined Classes
- Method Could Be Static
|
/src/Composer/Installer/LibraryInstaller.php:65 | 7 | - Wrong Argument Type
- Variable Is Not A Condition
- Wrong Parameter Type
- Wrong Type With Call
- Uses Default Values
- Could Make A Function
|
/src/Composer/Installer/LibraryInstaller.php:267 | 7 | - No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Uses Default Values
- Undefined Classes
- Could Make A Function
- Preprocessable
|
/src/Composer/Installer/ProjectInstaller.php:62 | 7 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Repository/ComposerRepository.php:292 | 7 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Should Use Local Class
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/Util/Git.php:25 | 7 | - Ambiguous Visibilities
- Ambiguous Static
- Property Used In One Method Only
- Undefined Classes
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Composer/Util/Hg.php:25 | 7 | - Ambiguous Visibilities
- Ambiguous Static
- Property Used In One Method Only
- Undefined Classes
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Composer/Util/HttpDownloader.php:396 | 7 | - Non Integer Nor String As Index
- Cast To Boolean
- Ambiguous Array Index
- Weak Type With Array
- No Null For Index
- Indices Are Int Or String
- Wrong Type Returned
|
/src/Composer/Util/NoProxyPattern.php:195 | 7 | - Class-typed References
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Avoid Using stdClass
- StandaloneType True False Null
- Modified Typed Parameter
- Missing Some Returntype
|
/src/Composer/Util/RemoteFilesystem.php:76 | 7 | - Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Type
- StandaloneType True False Null
- Could Inject Parameter
- Never Called Parameter
|
/src/Composer/Command/ArchiveCommand.php:173 | 6 | - Wrong Parameter Type
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Undefined Variable
- Useless Type Casting
- Could Make A Function
|
/src/Composer/Command/ConfigCommand.php:952 | 6 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Default Arguments
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Command/ConfigCommand.php:972 | 6 | - Wrong Number Of Arguments
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Mismatched Type
- Uses Default Values
- Undefined Classes
|
/src/Composer/Command/InitCommand.php:66 | 6 | - Wrong Argument Type
- Wrong Type With Call
- Uses Default Values
- Undefined Class Constants
- Could Make A Function
- Preprocessable
|
/src/Composer/Command/PackageDiscoveryTrait.php:284 | 6 | - Undefined Interfaces
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- StandaloneType True False Null
- Could Inject Parameter
|
/src/Composer/Config.php:437 | 6 | - Useless Parenthesis
- Buried Assignation
- Iffectations
- Weak Type With Array
- Uses Default Values
- Strict Comparison With Booleans
|
/src/Composer/DependencyResolver/Operation/UninstallOperation.php:52 | 6 | - Use Named Boolean In Argument Definition
- Ambiguous Static
- No Boolean As Default
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
|
/src/Composer/DependencyResolver/Operation/UpdateOperation.php:71 | 6 | - Use Named Boolean In Argument Definition
- Ambiguous Static
- No Boolean As Default
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
|
/src/Composer/DependencyResolver/Pool.php:202 | 6 | - Undefined Interfaces
- Insufficient Type
- Should Use Local Class
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/IO/ConsoleIO.php:186 | 6 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Default Arguments
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/IO/ConsoleIO.php:194 | 6 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Mismatched Default Arguments
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/IO/NullIO.php:65 | 6 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Method Signature Must Be Compatible
- No Boolean As Default
- Empty Function
- Undefined Classes
|
/src/Composer/IO/NullIO.php:117 | 6 | - Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Empty Function
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Installer/ProjectInstaller.php:94 | 6 | - Undefined Interfaces
- Unused Public Methods
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Undefined Classes
- StandaloneType True False Null
|
/src/Composer/Package/Loader/ValidatingArrayLoader.php:63 | 6 | - Assumptions
- Max Level Of Nesting
- Too Many Local Variables
- Use ::Class Operator
- Could Inject Parameter
- Never Called Parameter
|
/src/Composer/Package/Version/VersionBumper.php:47 | 6 | - Undefined Interfaces
- Too Many Local Variables
- Should Use Local Class
- Undefined Classes
- Method Could Be Static
- Missing Some Returntype
|
/src/Composer/Package/Version/VersionSelector.php:244 | 6 | - No Need For Else
- Bail Out Early
- Weak Type With Array
- Uses Default Values
- Undefined Classes
- Drop Else After Return
|
/src/Composer/Repository/PathRepository.php:195 | 6 | - Merge If Then
- Buried Assignation
- Written Only Variables
- Used Once Variables (In Scope)
- Iffectations
- Used Once Variables
|
/src/Composer/Repository/PlatformRepository.php:742 | 6 | - Useless Instructions
- Constant Used Only Once
- Buried Assignation
- Undefined Variable
- Undefined Classes
- Could Use self
|
/src/Composer/Util/Filesystem.php:616 | 6 | - strpos() Too Much
- Wrong Parameter Type
- No Null For Native PHP Functions
- Wrong Type For Native PHP Function
- Uses Default Values
- Could Make A Function
|
/src/Composer/Util/Git.php:77 | 6 | - No Default For Referenced Parameter
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- StandaloneType True False Null
- Wrong Type With Default
|
/src/Composer/Util/Http/CurlDownloader.php:110 | 6 | - False To Array Conversion
- Constant Used Only Once
- Buried Assignation
- Iffectations
- Weak Type With Array
- Could Make A Function
|
/src/Composer/Util/Platform.php:25 | 6 | - Property Used In One Method Only
- Undefined Classes
- Same Name For Property And Method
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Composer/Util/Platform.php:27 | 6 | - Property Used In One Method Only
- Undefined Classes
- Same Name For Property And Method
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Composer/Util/Platform.php:29 | 6 | - Property Used In One Method Only
- Undefined Classes
- Same Name For Property And Method
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|