Skip to content

Commit

Permalink
Codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zbrag committed Sep 5, 2024
1 parent 0b22177 commit 6641b09
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 23 deletions.
32 changes: 16 additions & 16 deletions src/Api/DnsZonesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,28 @@ public function create(
if ($master !== null) {
$payload['master'] = $master;
}
if($ns !== null) {
if ($ns !== null) {
$payload['ns'] = $ns;
}
if($dnssec !== null) {
if ($dnssec !== null) {
$payload['dnssec'] = $dnssec;
}
if($hostMaster !== null) {
if ($hostMaster !== null) {
$payload['hostMaster'] = $hostMaster;
}
if($refresh !== null) {
if ($refresh !== null) {
$payload['refresh'] = $refresh;
}
if($retry !== null) {
if ($retry !== null) {
$payload['retry'] = $retry;
}
if($expire !== null) {
if ($expire !== null) {
$payload['expire'] = $expire;
}
if($ttl !== null) {
if ($ttl !== null) {
$payload['ttl'] = $ttl;
}
if($records !== null) {
if ($records !== null) {
$payload['records'] = $records->toArray();
}

Expand Down Expand Up @@ -167,28 +167,28 @@ public function update(
if ($master !== null) {
$payload['master'] = $master;
}
if($ns !== null) {
if ($ns !== null) {
$payload['ns'] = $ns;
}
if($dnssec !== null) {
if ($dnssec !== null) {
$payload['dnssec'] = $dnssec;
}
if($hostMaster !== null) {
if ($hostMaster !== null) {
$payload['hostMaster'] = $hostMaster;
}
if($refresh !== null) {
if ($refresh !== null) {
$payload['refresh'] = $refresh;
}
if($retry !== null) {
if ($retry !== null) {
$payload['retry'] = $retry;
}
if($expire !== null) {
if ($expire !== null) {
$payload['expire'] = $expire;
}
if($ttl !== null) {
if ($ttl !== null) {
$payload['ttl'] = $ttl;
}
if($records !== null) {
if ($records !== null) {
$payload['records'] = $records->toArray();
}

Expand Down
3 changes: 2 additions & 1 deletion src/Api/DomainsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public function list(
return DomainDetailsCollection::fromArray($response->json());
}

public function export(array $parameters = []): array {
public function export(array $parameters = []): array
{
$query = $parameters;
$query['export'] = 'true';
$response = $this->client->get('v2/domains', $query);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/ProvidersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function list(
return ProviderCollection::fromArray($response->json());
}

public function export(array $parameters = []): array {
public function export(array $parameters = []): array
{
$query = $parameters;
$query['export'] = 'true';
$response = $this->client->get('v2/providers', $query);
Expand Down
2 changes: 1 addition & 1 deletion tests/Domain/data/exchangerates_valid.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

return [
return [
'currency' => 'EUR',
'exchangerates' => [
'USD' => 1000000,
Expand Down
2 changes: 1 addition & 1 deletion tests/Domain/data/process_invalid_status.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

return [
return [
'id' => 46069000,
'user' => 'johndoe/died',
'customer' => 'johndoe',
Expand Down
2 changes: 1 addition & 1 deletion tests/Domain/data/process_valid.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

return [
return [
'id' => 46069000,
'user' => 'johndoe/died',
'customer' => 'johndoe',
Expand Down
2 changes: 1 addition & 1 deletion tests/Domain/data/process_valid_only_required.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

return [
return [
'id' => 46069000,
'user' => 'johndoe/died',
'customer' => 'johndoe',
Expand Down
2 changes: 1 addition & 1 deletion tests/Domain/data/transaction_valid.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

return [
return [
'id' => 654563,
'customer' => 'johndoe',
'date' => '2021-08-11T06:17:15Z',
Expand Down

0 comments on commit 6641b09

Please sign in to comment.