Skip to content

Commit e4b8e03

Browse files
committed
Code review
1 parent 6d5f1a4 commit e4b8e03

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

src/Compute/v2/Api.php

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ public function getHypervisor(): array
669669
];
670670
}
671671

672-
public function getQuotaSet()
672+
public function getQuotaSet(): array
673673
{
674674
return [
675675
'method' => 'GET',
@@ -680,19 +680,15 @@ public function getQuotaSet()
680680
];
681681
}
682682

683-
public function getQuotaSetDetail()
683+
public function getQuotaSetDetail(): array
684684
{
685-
return [
686-
'method' => 'GET',
687-
'path' => 'os-quota-sets/{tenantId}/detail',
688-
'jsonKey' => 'quota_set',
689-
'params' => [
690-
'tenantId' => $this->params->urlId('quota-sets')
691-
]
692-
];
685+
$data = $this->getQuotaSet();
686+
$data['path'] += '/detail';
687+
688+
return $data;
693689
}
694690

695-
public function deleteQuotaSet()
691+
public function deleteQuotaSet(): array
696692
{
697693
return [
698694
'method' => 'DELETE',
@@ -704,7 +700,7 @@ public function deleteQuotaSet()
704700
];
705701
}
706702

707-
public function putQuotaSet()
703+
public function putQuotaSet(): array
708704
{
709705
return [
710706
'method' => 'PUT',

src/Networking/v2/Models/Quota.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class Quota extends OperatorResource implements Retrievable, Updateable, Deletab
4040
*/
4141
public $subnetpool;
4242

43-
4443
/**
4544
* @var int
4645
*/

0 commit comments

Comments
 (0)