Skip to content

Commit

Permalink
Simplyfy use of array()
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfrancis committed Sep 11, 2021
1 parent 0eb62e3 commit ffb6057
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hmrc-gateway-message.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class hmrc_gateway_message extends check {
private $message_function = NULL;
private $message_transation = NULL;
private $message_correlation = NULL;
private $message_keys = array();
private $message_keys = [];
private $vendor_code = NULL;
private $vendor_name = NULL;
private $sender_name = NULL;
Expand Down
4 changes: 2 additions & 2 deletions hmrc-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function request_list($message_class) {
//--------------------------------------------------
// Extract requests

$requests = array();
$requests = [];

if (isset($this->response_object->Body->StatusReport)) {
foreach ($this->response_object->Body->StatusReport->StatusRecord as $request) {
Expand Down Expand Up @@ -226,7 +226,7 @@ public function request_poll($request) {

} else if ($this->response_qualifier == 'response') {

$details = array();
$details = [];
if ($this->request_ref) {
$details = $this->request_ref->response_details($this->response_object);
}
Expand Down
2 changes: 1 addition & 1 deletion hmrc-rti-eas.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class hmrc_rti_eas extends hmrc_rti { // Employer Alignment Submission

private $employees = array();
private $employees = [];

public function message_class_get() {
return 'HMRC-PAYE-RTI-EAS';
Expand Down
2 changes: 1 addition & 1 deletion hmrc-rti-eps.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class hmrc_rti_eps extends hmrc_rti { // Employer Payment Summary - Send an EPS instead of an FPS if you've not paid any employees in a tax month.

private $employees = array();
private $employees = [];

public function message_class_get() {
return 'HMRC-PAYE-RTI-EPS';
Expand Down
2 changes: 1 addition & 1 deletion hmrc-rti-fps.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class hmrc_rti_fps extends hmrc_rti { // Full Payment Submission

private $employees = array();
private $employees = [];

public function message_class_get() {
return 'HMRC-PAYE-RTI-FPS';
Expand Down
4 changes: 2 additions & 2 deletions hmrc-rti.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class hmrc_rti extends check {

protected $details = array();
protected $details = [];

public function details_set($details) {

Expand Down Expand Up @@ -51,7 +51,7 @@ public function request_header_get_xml() {

public function response_details($response_object) {

return array();
return [];

}

Expand Down
2 changes: 1 addition & 1 deletion hmrc-vat.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class hmrc_vat extends check {

protected $details = array();
protected $details = [];

public function details_set($details) {

Expand Down

0 comments on commit ffb6057

Please sign in to comment.