Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich authored and actions-user committed Nov 16, 2021
1 parent b53c946 commit 7cb8bee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/Commands/Sites/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected function action()
$serverId = $this->argument('server_id');

if ($serverId) {
$sites = collect($this->spinupwp->sites->listForServer((int)$serverId));
$sites = collect($this->spinupwp->sites->listForServer((int) $serverId));
} else {
$sites = collect($this->spinupwp->sites->list());
}
Expand All @@ -24,7 +24,7 @@ protected function action()
return $sites;
}

return $sites->map(fn($site) => [
return $sites->map(fn ($site) => [
'ID' => $site->id,
'Server ID' => $site->server_id,
'Domain' => $site->domain,
Expand Down
12 changes: 6 additions & 6 deletions tests/Feature/Commands/ServersListCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
'used' => 7661140000,
'updated_at' => '2021-11-03T16:52:48.000000Z',
],
'database' => [
'server' => 'mysql-8.0'
'database' => [
'server' => 'mysql-8.0',
],
],
[
Expand All @@ -31,8 +31,8 @@
'used' => 7661140000,
'updated_at' => '2021-11-03T16:52:48.000000Z',
],
'database' => [
'server' => 'mysql-8.0'
'database' => [
'server' => 'mysql-8.0',
],
],
];
Expand Down Expand Up @@ -69,14 +69,14 @@
'hellfish-media',
'127.0.0.1',
'20.04',
'mysql-8.0'
'mysql-8.0',
],
[
'2',
'staging.hellfish-media',
'127.0.0.1',
'20.04',
'mysql-8.0'
'mysql-8.0',
],
]
);
Expand Down
8 changes: 4 additions & 4 deletions tests/Feature/Commands/SitesListCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
'domain' => 'hellfishmedia.com',
'site_user' => 'hellfish',
'php_version' => '8.0',
'page_cache' => [
'page_cache' => [
'enabled' => true,
],
'https' => [
'enabled' => true,
]
],
],
[
'id' => 2,
'server_id' => 2,
'domain' => 'staging.hellfishmedia.com',
'site_user' => 'staging-hellfish',
'php_version' => '8.0',
'page_cache' => [
'page_cache' => [
'enabled' => false,
],
'https' => [
'enabled' => false,
]
],
],
];
beforeEach(function () use ($response) {
Expand Down

0 comments on commit 7cb8bee

Please sign in to comment.