/** * Ensures that the required metadata is filled out correctly in the realme configuration. */ private function validateMetadata() { if (true === is_null($this->service->getMetadataOrganisationName())) { $this->errors[] = _t('RealMeSetupTask.ERR_CONFIG_NO_ORGANISATION_NAME'); } if (true === is_null($this->service->getMetadataOrganisationDisplayName())) { $this->errors[] = _t('RealMeSetupTask.ERR_CONFIG_NO_ORGANISATION_DISPLAY_NAME'); } if (true === is_null($this->service->getMetadataOrganisationUrl())) { $this->errors[] = _t('RealMeSetupTask.ERR_CONFIG_NO_ORGANISATION_URL'); } $contact = $this->service->getMetadataContactSupport(); if (true === is_null($contact['company']) || true === is_null($contact['firstNames']) || is_null($contact['surname'])) { $this->errors[] = _t('RealMeSetupTask.ERR_CONFIG_NO_SUPPORT_CONTACT'); } }