Fixed cyclomatic complexity styleCheck warning