Fix spaces in assignments

[MAILPOET-3912]
This commit is contained in:
Jan Lysý
2022-01-03 15:55:20 +01:00
committed by Veljko V
parent 3bc84fbaf1
commit d99c7adf06
10 changed files with 26 additions and 26 deletions

View File

@@ -123,11 +123,11 @@ class Segments extends APIEndpoint {
$segment = $this->segmentSavecontroller->save($data);
} catch (ValidationException $exception) {
return $this->badRequest([
APIError::BAD_REQUEST => __('Please specify a name.', 'mailpoet'),
APIError::BAD_REQUEST => __('Please specify a name.', 'mailpoet'),
]);
} catch (ConflictException $exception) {
return $this->badRequest([
APIError::BAD_REQUEST => __('Another record already exists. Please specify a different "name".', 'mailpoet'),
APIError::BAD_REQUEST => __('Another record already exists. Please specify a different "name".', 'mailpoet'),
]);
}
$response = $this->segmentsResponseBuilder->build($segment);