Skip to content

Commit

Permalink
Re-format the code
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Jan 6, 2021
1 parent 6b5853d commit af57678
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Common/Transport/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function httpErrors(): callable
return function (callable $handler) {
return function ($request, array $options) use ($handler) {
return $handler($request, $options)->then(
function (ResponseInterface $response) use ($request, $handler) {
function (ResponseInterface $response) use ($request) {
if ($response->getStatusCode() < 400) {
return $response;
}
Expand Down
20 changes: 10 additions & 10 deletions src/OpenStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function getDefaultIdentityService(array $options): Service
*
* @param array $options options that will be used in configuring the service
*/
public function computeV2(array $options = []): \OpenStack\Compute\v2\Service
public function computeV2(array $options = []): Compute\v2\Service
{
$defaults = ['catalogName' => 'nova', 'catalogType' => 'compute'];

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

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

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

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

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

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

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

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

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

Expand Down

0 comments on commit af57678

Please sign in to comment.