Add space between if and ‘(‘

[MAILPOET-1791]
This commit is contained in:
Ján Mikláš
2019-02-13 13:08:49 +01:00
committed by M. Shull
parent a935b091d3
commit 3ee58aea10
333 changed files with 4001 additions and 4001 deletions

View File

@ -2,7 +2,7 @@
namespace MailPoet\API\JSON;
if(!defined('ABSPATH')) exit;
if (!defined('ABSPATH')) exit;
class ErrorResponse extends Response {
public $errors;
@ -19,7 +19,7 @@ class ErrorResponse extends Response {
function formatErrors($errors = array()) {
return array_map(function($error, $message) {
// sanitize SQL error
if(preg_match('/^SQLSTATE/i', $message)) {
if (preg_match('/^SQLSTATE/i', $message)) {
$message = __('An unknown error occurred.', 'mailpoet');
}
return array(
@ -28,4 +28,4 @@ class ErrorResponse extends Response {
);
}, array_keys($errors), array_values($errors));
}
}
}