Add space between catch and ‘(‘
[MAILPOET-1791]
This commit is contained in:
@@ -394,7 +394,7 @@ class Newsletters extends APIEndpoint {
|
||||
Newsletter::findOne($id)->asArray()
|
||||
);
|
||||
}
|
||||
} catch(\Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return $this->errorResponse(array(
|
||||
$e->getCode() => $e->getMessage()
|
||||
));
|
||||
@@ -464,7 +464,7 @@ class Newsletters extends APIEndpoint {
|
||||
try {
|
||||
$meta = $this->bulk_action->apply('\MailPoet\Models\Newsletter', $data);
|
||||
return $this->successResponse(null, $meta);
|
||||
} catch(\Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return $this->errorResponse(array(
|
||||
$e->getCode() => $e->getMessage()
|
||||
));
|
||||
|
Reference in New Issue
Block a user