code format
This commit is contained in:
parent
8e050e3430
commit
1cd0498b15
3 changed files with 5 additions and 6 deletions
|
@ -8,4 +8,4 @@ return [
|
|||
'sms' => [
|
||||
'verification'
|
||||
]
|
||||
];
|
||||
];
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue