/** * @throws ConfigurationException */ public function setUpProject() { try { $configurationArray = $this->getConfigurationArray(); $settingsObject = $this->getSettingsObject($configurationArray); $saver = new Saver($settingsObject); $saver->importInspections(); } catch (Exception $e) { throw new ConfigurationException($e->getMessage()); } }
/** * @return bool * @throws ConfigurationException */ public function setUpIndents() { try { $configurationArray = $this->getConfigurationArray(); $setting = $this->getSettingInstance($configurationArray); $saver = new Saver($setting); $saver->importIndents(); } catch (Exception $e) { throw new ConfigurationException($e->getMessage()); } return true; }