Skip to content

Commit af57678

Browse files
Re-format the code
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent 6b5853d commit af57678

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/Common/Transport/Middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function httpErrors(): callable
2020
return function (callable $handler) {
2121
return function ($request, array $options) use ($handler) {
2222
return $handler($request, $options)->then(
23-
function (ResponseInterface $response) use ($request, $handler) {
23+
function (ResponseInterface $response) use ($request) {
2424
if ($response->getStatusCode() < 400) {
2525
return $response;
2626
}

src/OpenStack.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function getDefaultIdentityService(array $options): Service
7777
*
7878
* @param array $options options that will be used in configuring the service
7979
*/
80-
public function computeV2(array $options = []): \OpenStack\Compute\v2\Service
80+
public function computeV2(array $options = []): Compute\v2\Service
8181
{
8282
$defaults = ['catalogName' => 'nova', 'catalogType' => 'compute'];
8383

@@ -89,7 +89,7 @@ public function computeV2(array $options = []): \OpenStack\Compute\v2\Service
8989
*
9090
* @param array $options options that will be used in configuring the service
9191
*/
92-
public function networkingV2(array $options = []): \OpenStack\Networking\v2\Service
92+
public function networkingV2(array $options = []): Networking\v2\Service
9393
{
9494
$defaults = ['catalogName' => 'neutron', 'catalogType' => 'network'];
9595

@@ -101,7 +101,7 @@ public function networkingV2(array $options = []): \OpenStack\Networking\v2\Serv
101101
*
102102
* @param array $options options that will be used in configuring the service
103103
*/
104-
public function networkingV2ExtLayer3(array $options = []): \OpenStack\Networking\v2\Extensions\Layer3\Service
104+
public function networkingV2ExtLayer3(array $options = []): Networking\v2\Extensions\Layer3\Service
105105
{
106106
$defaults = ['catalogName' => 'neutron', 'catalogType' => 'network'];
107107

@@ -113,7 +113,7 @@ public function networkingV2ExtLayer3(array $options = []): \OpenStack\Networkin
113113
*
114114
* @param array $options options that will be used in configuring the service
115115
*/
116-
public function networkingV2ExtSecGroups(array $options = []): \OpenStack\Networking\v2\Extensions\SecurityGroups\Service
116+
public function networkingV2ExtSecGroups(array $options = []): Networking\v2\Extensions\SecurityGroups\Service
117117
{
118118
$defaults = ['catalogName' => 'neutron', 'catalogType' => 'network'];
119119

@@ -125,7 +125,7 @@ public function networkingV2ExtSecGroups(array $options = []): \OpenStack\Networ
125125
*
126126
* @param array $options options that will be used in configuring the service
127127
*/
128-
public function identityV2(array $options = []): \OpenStack\Identity\v2\Service
128+
public function identityV2(array $options = []): Identity\v2\Service
129129
{
130130
$defaults = ['catalogName' => 'keystone', 'catalogType' => 'identity'];
131131

@@ -137,7 +137,7 @@ public function identityV2(array $options = []): \OpenStack\Identity\v2\Service
137137
*
138138
* @param array $options options that will be used in configuring the service
139139
*/
140-
public function identityV3(array $options = []): \OpenStack\Identity\v3\Service
140+
public function identityV3(array $options = []): Service
141141
{
142142
$defaults = ['catalogName' => 'keystone', 'catalogType' => 'identity'];
143143

@@ -149,7 +149,7 @@ public function identityV3(array $options = []): \OpenStack\Identity\v3\Service
149149
*
150150
* @param array $options options that will be used in configuring the service
151151
*/
152-
public function objectStoreV1(array $options = []): \OpenStack\ObjectStore\v1\Service
152+
public function objectStoreV1(array $options = []): ObjectStore\v1\Service
153153
{
154154
$defaults = ['catalogName' => 'swift', 'catalogType' => 'object-store'];
155155

@@ -161,7 +161,7 @@ public function objectStoreV1(array $options = []): \OpenStack\ObjectStore\v1\Se
161161
*
162162
* @param array $options options that will be used in configuring the service
163163
*/
164-
public function blockStorageV2(array $options = []): \OpenStack\BlockStorage\v2\Service
164+
public function blockStorageV2(array $options = []): BlockStorage\v2\Service
165165
{
166166
$defaults = ['catalogName' => 'cinderv2', 'catalogType' => 'volumev2'];
167167

@@ -173,7 +173,7 @@ public function blockStorageV2(array $options = []): \OpenStack\BlockStorage\v2\
173173
*
174174
* @param array $options options that will be used in configuring the service
175175
*/
176-
public function imagesV2(array $options = []): \OpenStack\Images\v2\Service
176+
public function imagesV2(array $options = []): Images\v2\Service
177177
{
178178
$defaults = ['catalogName' => 'glance', 'catalogType' => 'image'];
179179

@@ -183,7 +183,7 @@ public function imagesV2(array $options = []): \OpenStack\Images\v2\Service
183183
/**
184184
* Creates a new Gnocchi Metric service v1.
185185
*/
186-
public function metricGnocchiV1(array $options = []): \OpenStack\Metric\v1\Gnocchi\Service
186+
public function metricGnocchiV1(array $options = []): Metric\v1\Gnocchi\Service
187187
{
188188
$defaults = ['catalogName' => 'gnocchi', 'catalogType' => 'metric'];
189189

0 commit comments

Comments
 (0)