Use short array syntax

[MAILPOET-2090]
This commit is contained in:
Pavel Dohnal
2019-05-20 13:48:48 +02:00
committed by M. Shull
parent 9f16cb6a5f
commit 5da7110eb6
385 changed files with 40133 additions and 40131 deletions

View File

@@ -14,7 +14,7 @@ abstract class Response {
public $status;
public $meta;
function __construct($status, $meta = array()) {
function __construct($status, $meta = []) {
$this->status = $status;
$this->meta = $meta;
}
@@ -23,7 +23,7 @@ abstract class Response {
WPFunctions::get()->statusHeader($this->status);
$data = $this->getData();
$response = array();
$response = [];
if (!empty($this->meta)) {
$response['meta'] = $this->meta;