d4rkd0s / phpfisx

A basic Physics engine in PHP because why not
https://d4rkd0s.github.io/phpfisx/
MIT License
4 stars 1 forks source link

Fix "method_complexity" issue in phpfisx/areas/field.php #10

Closed d4rkd0s closed 2 years ago

d4rkd0s commented 5 years ago

Function applyForces has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

https://codeclimate.com/github/d4rkd0s/phpfisx/phpfisx/areas/field.php#issue_5c64980fc99574000100003a