phone = ArrayHelper::getValue($user, 'abiturientQuestionary.personalData.main_phone'); } public function getRecipientAddress(): string { $processed_phone = $this->phone; $processed_phone = str_replace('+', '', $processed_phone); $processed_phone = str_replace('(', '', $processed_phone); $processed_phone = str_replace(')', '', $processed_phone); $processed_phone = str_replace('-', '', $processed_phone); $processed_phone = str_replace('(', '', $processed_phone); $processed_phone = str_replace(')', '', $processed_phone); $processed_phone = str_replace('-', '', $processed_phone); $processed_phone = str_replace(' ', '', $processed_phone); return str_replace('_', '', $processed_phone); } }