Skip to content

Commit 216c432

Browse files
committed
Psr2 fix
1 parent 8dcea7e commit 216c432

File tree

5 files changed

+6
-14
lines changed

5 files changed

+6
-14
lines changed

samples/compute/v2/flavors/delete_flavor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717

1818
$flavor = $compute->getFlavor(['id' => '{flavorId}']);
19-
$flavor->delete();
19+
$flavor->delete();

samples/compute/v2/keypairs/get_keypair.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
$openstack = new OpenStack\OpenStack([
66
'authUrl' => '{authUrl}',
7-
'region' => '{region}',
7+
'region' => '{region}',
88
'user' => [
99
'id' => '{userId}',
1010
'password' => '{password}'

samples/compute/v2/keypairs/list_keypairs.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
$keypairs = $compute->listKeypairs();
2020

21-
foreach($keypairs as $keypair)
22-
{
21+
foreach ($keypairs as $keypair) {
2322
/**@var Keypair $keypair */
2423
}

samples/compute/v2/limits/get_limits.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
$openstack = new OpenStack\OpenStack([
66
'authUrl' => '{authUrl}',
7-
'region' => '{region}',
7+
'region' => '{region}',
88
'user' => [
99
'id' => '{userId}',
1010
'password' => '{password}'

tests/integration/Compute/v2/CoreTest.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ private function getService()
5757

5858
private function getNetworkService()
5959
{
60-
if(!$this->networkService)
61-
{
60+
if (!$this->networkService) {
6261
$this->networkService = Utils::getOpenStack()->networkingV2();
6362
}
6463

@@ -67,8 +66,7 @@ private function getNetworkService()
6766

6867
private function getBlockStorageService()
6968
{
70-
if(!$this->blockStorageService)
71-
{
69+
if (!$this->blockStorageService) {
7270
$this->blockStorageService = Utils::getOpenStack()->blockStorageV2();
7371
}
7472

@@ -172,8 +170,6 @@ public function runTests()
172170

173171
// Limits
174172
$this->getLimits();
175-
176-
177173
} finally {
178174
// Teardown
179175
$this->deleteServer();
@@ -188,7 +184,6 @@ public function runTests()
188184

189185
private function createServer()
190186
{
191-
192187
$replacements = [
193188
'{serverName}' => $this->randomStr(),
194189
'{imageId}' => $this->imageId,
@@ -532,7 +527,6 @@ private function addSecurityGroupToServer()
532527

533528
/**@var Server $server*/
534529
$this->logStep('Added security group {secGroupName} to server {serverId}', $replacements);
535-
536530
}
537531

538532
private function listServerSecurityGroups()
@@ -563,7 +557,6 @@ private function removeServerSecurityGroup()
563557

564558
private function attachVolumeToServer()
565559
{
566-
567560
$replacements = [
568561
'{serverId}' => $this->serverId,
569562
'{volumeId}' => $this->volume->id

0 commit comments

Comments
 (0)