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

@@ -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();
}
}