Add space between if and ‘(‘
[MAILPOET-1791]
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace MailPoet\API\JSON;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
abstract class Response {
|
||||
const STATUS_OK = 200;
|
||||
@@ -26,14 +26,14 @@ abstract class Response {
|
||||
$data = $this->getData();
|
||||
$response = array();
|
||||
|
||||
if(!empty($this->meta)) {
|
||||
if (!empty($this->meta)) {
|
||||
$response['meta'] = $this->meta;
|
||||
}
|
||||
if($data !== null) {
|
||||
if ($data !== null) {
|
||||
$response = array_merge($response, $data);
|
||||
}
|
||||
|
||||
if(!empty($response)) {
|
||||
if (!empty($response)) {
|
||||
@header('Content-Type: application/json; charset='.get_option('blog_charset'));
|
||||
echo wp_json_encode($response);
|
||||
}
|
||||
@@ -41,4 +41,4 @@ abstract class Response {
|
||||
}
|
||||
|
||||
abstract function getData();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user