Closed christian-weiss closed 2 years ago
I'm not sure I understand the issue. Do you mind elaborating it a bit?
This image is from the official PHP manual: [] ...i think a "goto" operator is a code smell, so it indicates that the architecture of this code base is suboptimal designed.
Please consider to split that method (X):
Use class members to pass data around if necessary (increase coherence of that class). This small refactoring is just following the boy scout rule - there is more to be done...
I recommend to read the book "Clean Code".
I have the opposite opinion, thank you.
https://github.com/swaggest/php-json-schema/blob/0dbf9e7857d065bde50605972933d6c38dbe6b8c/src/Schema.php#L1186
I just spotted this in your code base on the very first look, while i was evaluating if i should use your lib...