Skip to content

Commit 171cab7

Browse files
committed
PSR2 fixes
1 parent 69d00de commit 171cab7

12 files changed

+9
-23
lines changed

samples/compute/v2/keypair/create_and_delete_keypair.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@
2222
$keypair = $compute->createKeypair($data);
2323

2424
$keypair->delete();
25-

samples/compute/v2/servers/add_remove_security_group.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@
2020

2121
$server->addSecurityGroup(['name' => 'secgroup name']);
2222
$server->removeSecurityGroup(['name' => 'default']);
23-

samples/compute/v2/servers/attach_detach_volume_attachment.php

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

2626

2727
//Must detach by volumeAttachment id
28-
$server->detachVolume($volumeAttachment->id);
28+
$server->detachVolume($volumeAttachment->id);

samples/compute/v2/servers/list_security_groups.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@
1818
$compute = $openstack->computeV2(['region' => '{region}']);
1919

2020
$server = $compute->getServer(['id' => 'uuid']);
21-
foreach($server->listSecurityGroups() as $securityGroup)
22-
{
21+
foreach ($server->listSecurityGroups() as $securityGroup) {
2322
/**@var SecurityGroup $securityGroup */
2423
$rules = $securityGroup->securityGroupRules;
2524

26-
foreach($rules as $rule)
27-
{
25+
foreach ($rules as $rule) {
2826
/**@var SecurityGroupRule $rule */
2927
$rule->direction;
3028
}

samples/compute/v2/servers/list_volume_attachments.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020

2121
$server = $compute->getServer(['id' => 'uuid']);
2222

23-
foreach($server->listVolumeAttachments() as $volumeAttachment)
24-
{
23+
foreach ($server->listVolumeAttachments() as $volumeAttachment) {
2524
/**@var VolumeAttachment $volumeAttachment*/
2625
print_r($volumeAttachment);
2726
}

samples/networking/v2ext/security_group/create_security_group_rule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@
3030
'remoteIpPrefix' => '10.0.0.0/24', //Optional
3131
//'remoteGroupId' => '{remoteSecurityGroupId}'
3232
]);
33-

samples/networking/v2ext/security_group/delete_security_group_rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
$networkingExtSecGroup = $openstack->networkingV2ExtSecGroups();
2020

2121
$secRule = $networkingExtSecGroup->getSecurityGroupRule('{uuid}');
22-
$secRule->delete();
22+
$secRule->delete();

samples/networking/v2ext/security_group/list_security_groups.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@
2020

2121
$networkingExtSecGroup = $openstack->networkingV2ExtSecGroups();
2222

23-
foreach($networkingExtSecGroup->listSecurityGroups() as $group)
24-
{
25-
23+
foreach ($networkingExtSecGroup->listSecurityGroups() as $group) {
2624
}

samples/networking/v2ext/security_group/list_security_groups_rules.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@
2222

2323
//List rules belong to a security group
2424
$securityGroup = $networkingExtSecGroup->getSecurityGroup(['id' => '{uuid}']);
25-
foreach($securityGroup->securityGroupRules as $rule)
26-
{
27-
25+
foreach ($securityGroup->securityGroupRules as $rule) {
2826
}
2927

3028

3129
//All rules
32-
foreach($networkingExtSecGroup->listSecurityGroupRules() as $group)
33-
{
34-
30+
foreach ($networkingExtSecGroup->listSecurityGroupRules() as $group) {
3531
}

src/Compute/v2/Api.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,5 +546,4 @@ public function detachVolume(): array
546546
]
547547
];
548548
}
549-
550549
}

0 commit comments

Comments
 (0)