In certain cases, some warnings were being thrown in islandora_critical_editions when some vairables in the shared setup function were not being set. I have added sanity checks to the code to prevent these error's/warnings from popping up.
Updated coding standards found by code sniffer.