adds LineContext class to encapsulate some shared logic/clean things up
renames some conditions/methods to be more concise/accurate (notably: conditionalField to dependentField)
adds a new check method for checkFieldEmpty. I think the reference/dependent checks were mixed up, so as part of that I also reordered those (for routes#agency_id and fare_rules#agency_id)
maybe a couple of other things... sorry if this went overboard!
FYI, some tests are broken. Happy to help resolve if help is needed!
Contains tweaks for #312. Namely:
LineContext
class to encapsulate some shared logic/clean things upcheckFieldEmpty
. I think the reference/dependent checks were mixed up, so as part of that I also reordered those (for routes#agency_id and fare_rules#agency_id)FYI, some tests are broken. Happy to help resolve if help is needed!