All Questions
Tagged with cyclomatic-complexity object-oriented
3 questions
5
votes
1
answer
2k
views
DNS Zone file parser
I've coded this FileDNSParser class. It parses a BIND (RFC 1033) zone file and gets its resource records into an array.
Scrutizer CI says it too complex, and I'm sure there is too much nested ifs and ...
2
votes
1
answer
93
views
Semi-generic data loading utility class
The following implements a relatively generic and modular data loading utility. It loads images from a local storage given a lookup table. The data loader is parametrized via dependency injection to ...
0
votes
2
answers
316
views
Optimizing methods with multiple if checks on getter values
I have a method where I fetch user input, check if certain values exist, and based on that build my own custom input object that I would use to search in a database. The code for the search method is ...