Closes #926 Update container to v4 #928
6 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 2
- Added 6
Complexity increasing per file
==============================
- classes/Dependencies/League/Container/Argument/ResolvableArgument.php 1
- classes/Dependencies/League/Container/Argument/Literal/IntegerArgument.php 1
- classes/Dependencies/League/Container/Argument/Literal/BooleanArgument.php 1
- classes/Dependencies/League/Container/Argument/Literal/FloatArgument.php 1
- classes/Dependencies/League/Container/Argument/Literal/ObjectArgument.php 1
- classes/Dependencies/League/Container/Argument/DefaultValueArgument.php 1
- classes/Dependencies/League/Container/Argument/Literal/StringArgument.php 1
- classes/Dependencies/League/Container/Argument/Literal/ArrayArgument.php 1
- classes/Dependencies/League/Container/Argument/LiteralArgument.php 2
- classes/Dependencies/League/Container/Argument/Literal/CallableArgument.php 1
- classes/Dependencies/League/Container/ReflectionContainer.php 1
- classes/Dependencies/League/Container/Definition/Definition.php 1
- classes/Dependencies/League/Container/Container.php 2
Complexity decreasing per file
==============================
+ classes/Dependencies/League/Container/ServiceProvider/ServiceProviderAggregate.php -2
See the complete overview on Codacy
Annotations
Check warning on line 16 in classes/Dependencies/League/Container/Argument/ArgumentResolverTrait.php
codacy-production / Codacy Static Code Analysis
classes/Dependencies/League/Container/Argument/ArgumentResolverTrait.php#L16
The method resolveArguments() has an NPath complexity of 243. The configured NPath complexity threshold is 200.
Check notice on line 36 in classes/Dependencies/League/Container/Argument/LiteralArgument.php
codacy-production / Codacy Static Code Analysis
classes/Dependencies/League/Container/Argument/LiteralArgument.php#L36
The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Check warning on line 15 in classes/Dependencies/League/Container/Container.php
codacy-production / Codacy Static Code Analysis
classes/Dependencies/League/Container/Container.php#L15
The class Container has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
Check warning on line 172 in classes/Dependencies/League/Container/Container.php
codacy-production / Codacy Static Code Analysis
classes/Dependencies/League/Container/Container.php#L172
The method resolve() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
Check warning on line 167 in classes/Dependencies/League/Container/Definition/Definition.php
codacy-production / Codacy Static Code Analysis
classes/Dependencies/League/Container/Definition/Definition.php#L167
The method resolveNew() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
Check warning on line 167 in classes/Dependencies/League/Container/Definition/Definition.php
codacy-production / Codacy Static Code Analysis
classes/Dependencies/League/Container/Definition/Definition.php#L167
The method resolveNew() has an NPath complexity of 1152. The configured NPath complexity threshold is 200.