Would it make sense to add new abstract Abstract_Plugin_Check_Command class so that we can move few common methods from the current Plugin_Check_Command class?
Current Cyclomatic Complexity of this class around the higher limit (50). So any new addition triggers error in PHPMD.
Common and utility methods that could be moved to another class:
Would it make sense to add new abstract
Abstract_Plugin_Check_Command
class so that we can move few common methods from the currentPlugin_Check_Command
class?Current Cyclomatic Complexity of this class around the higher limit (50). So any new addition triggers error in PHPMD.
Common and utility methods that could be moved to another class:
get_options()
get_formatter()
flatten_file_results()
display_results()
has_runtime_check()