diff --git a/app/config/locale/templates.php b/app/config/locale/templates.php index ddd2590b3e..39cac84814 100644 --- a/app/config/locale/templates.php +++ b/app/config/locale/templates.php @@ -8,4 +8,4 @@ return [ 'sms' => [ 'verification' ] -]; \ No newline at end of file +]; diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 5380419e04..2a486d0f83 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1672,7 +1672,7 @@ App::patch('/v1/projects/:projectId/templates/sms/:type/:locale') } $templates = $project->getAttribute('templates', []); - $templates['sms.'.$type.'-'.$locale] = [ + $templates['sms.' . $type . '-' . $locale] = [ 'message' => $message ]; @@ -1710,7 +1710,7 @@ App::patch('/v1/projects/:projectId/templates/email/:type/:locale') } $templates = $project->getAttribute('templates', []); - $templates['email.'.$type.'-'.$locale] = [ + $templates['email.' . $type . '-' . $locale] = [ 'senderName' => $senderName, 'senderEmail' => $senderEmail, 'subject' => $subject, @@ -1722,5 +1722,3 @@ App::patch('/v1/projects/:projectId/templates/email/:type/:locale') $response->dynamic($project, Response::MODEL_PROJECT); }); - - diff --git a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php index 6137e577a4..ac5f3b973f 100644 --- a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php +++ b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php @@ -432,7 +432,8 @@ class ProjectsConsoleClientTest extends Scope /** * @depends testCreateProject */ - public function testUpdateProjectSMTP($data): array { + public function testUpdateProjectSMTP($data): array + { $id = $data['projectId']; $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $id . '/smtp', array_merge([ 'content-type' => 'application/json',