/src/Composer/Command/CreateProjectCommand.php:180 | 26 | - 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:339 | 21 | - 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:527 | 15 | - 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:90 | 12 | - 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:284 | 12 | - 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:46 | 12 | - Should Use Local Class
- Unused Parameter
- Undefined Interfaces
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Composer/Console/Application.php:392 | 11 | - 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:585 | 11 | - 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:33 | 11 | - 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:572 | 10 | - 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:1458 | 10 | - 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:48 | 10 | - 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:55 | 9 | - 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:148 | 9 | - Max Level Of Nesting
- Too Many Local Variables
- Undefined Interfaces
- Undefined Classes
- Could Inject Parameter
- Missing Some Returntype
|
/src/Composer/Console/Application.php:355 | 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:503 | 9 | - 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:444 | 9 | - 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:121 | 9 | - 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:42 | 9 | - 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:43 | 9 | - 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:102 | 9 | - 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:176 | 8 | - 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:167 | 8 | - 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:109 | 8 | - 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:102 | 8 | - 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:110 | 8 | - 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: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/Version/VersionSelector.php:72 | 8 | - 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:396 | 8 | - 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:195 | 8 | - 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:936 | 7 | - 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:75 | 7 | - Double Checks
- Merge If Then
- Check JSON
- Buried Assignation
- Uses Default Values
- Could Make A Function
|
/src/Composer/Command/PackageDiscoveryTrait.php:277 | 7 | - 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:716 | 7 | - 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:719 | 7 | - 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:728 | 7 | - 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:730 | 7 | - 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:194 | 7 | - 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:373 | 7 | - 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:59 | 7 | - 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:112 | 7 | - 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:55 | 7 | - 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:348 | 7 | - 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:416 | 7 | - 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:78 | 7 | - 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:164 | 7 | - 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: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/Package/Loader/ValidatingArrayLoader.php:302 | 7 | - Bail Out Early
- Buried Assignation
- Iffectations
- Weak Type With Array
- Uses Default Values
- Used Once Variables (In Scope)
|
/src/Composer/Package/Version/VersionBumper.php:45 | 7 | - 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:292 | 7 | - 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:89 | 7 | - 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:73 | 7 | - 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:78 | 7 | - 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:513 | 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/ArchiveCommand.php:173 | 6 | - 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:297 | 6 | - 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:404 | 6 | - Should Use Local Class
- Undefined Interfaces
- Undefined Classes
- Useless Argument
- Could Inject Parameter
- Method Could Be Static
|
/src/Composer/Command/CreateProjectCommand.php:429 | 6 | - 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:64 | 6 | - 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:60 | 6 | - 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:549 | 6 | - Should Use Local Class
- Unused Parameter
- Useless Argument
- StandaloneType True False Null
- Could Inject Parameter
- Method Could Be Static
|
/src/Composer/Config.php:423 | 6 | - Buried Assignation
- Iffectations
- Useless Parenthesis
- 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
- No Boolean As Default
- Ambiguous Static
- Should Use Local Class
- Unused Parameter
- Used Once Variables (In Scope)
|
/src/Composer/DependencyResolver/Operation/UpdateOperation.php:71 | 6 | - 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:202 | 6 | - Should Use Local Class
- Undefined Interfaces
- Insufficient Typehint
- Undefined Classes
- StandaloneType True False Null
- Method Could Be Static
|
/src/Composer/DependencyResolver/PoolBuilder.php:655 | 6 | - Nested Ifthen
- Buried Assignation
- Iffectations
- Wrong Type For Native PHP Function
- Mismatched Typehint
- Could Make A Function
|
/src/Composer/IO/ConsoleIO.php:186 | 6 | - 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:194 | 6 | - 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:79 | 6 | - 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:86 | 6 | - 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:117 | 6 | - 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:125 | 6 | - 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: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 | - Assumptions
- Max Level Of Nesting
- Too Many Local Variables
- Use ::Class Operator
- Could Inject Parameter
- Never Called Parameter
|
/src/Composer/Package/Version/VersionSelector.php:239 | 6 | - 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:190 | 6 | - Nested Ifthen
- Bail Out Early
- Unresolved Classes
- Uses Default Values
- Undefined Classes
- Strict Comparison With Booleans
|
/src/Composer/Repository/Vcs/PerforceDriver.php:161 | 6 | - 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:576 | 6 | - 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:25 | 6 | - 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:25 | 6 | - 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:421 | 6 | - 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
|