11<?php
22/**
33 * AboutApi
4- * PHP version 5
4+ * PHP version 7
55 *
66 * @category Class
77 * @package RusticiSoftware\Cloud\V2
@@ -75,7 +75,7 @@ public function __construct(
7575 HeaderSelector $ selector = null
7676 ) {
7777 $ this ->client = $ client ?: new Client ();
78- $ this ->config = $ config ?: new Configuration ();
78+ $ this ->config = $ config ?: Configuration:: getDefaultConfiguration ();
7979 $ this ->headerSelector = $ selector ?: new HeaderSelector ();
8080 }
8181
@@ -90,7 +90,7 @@ public function getConfig()
9090 /**
9191 * Operation getAbout
9292 *
93- * Get back the API version and application name.
93+ * Get back the API version and Application name
9494 *
9595 *
9696 * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response
@@ -106,7 +106,7 @@ public function getAbout()
106106 /**
107107 * Operation getAboutWithHttpInfo
108108 *
109- * Get back the API version and application name.
109+ * Get back the API version and Application name
110110 *
111111 *
112112 * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response
@@ -180,7 +180,7 @@ public function getAboutWithHttpInfo()
180180 /**
181181 * Operation getAboutAsync
182182 *
183- * Get back the API version and application name.
183+ * Get back the API version and Application name
184184 *
185185 *
186186 * @throws \InvalidArgumentException
@@ -199,7 +199,7 @@ function ($response) {
199199 /**
200200 * Operation getAboutAsyncWithHttpInfo
201201 *
202- * Get back the API version and application name.
202+ * Get back the API version and Application name
203203 *
204204 *
205205 * @throws \InvalidArgumentException
@@ -284,7 +284,7 @@ protected function getAboutRequest()
284284 if (isset ($ _tempBody )) {
285285 // $_tempBody is the method argument, if present
286286 $ httpBody = $ _tempBody ;
287-
287+
288288 if ($ headers ['Content-Type ' ] === 'application/json ' ) {
289289 // \stdClass has no __toString(), so we should encode it manually
290290 if ($ httpBody instanceof \stdClass) {
@@ -312,7 +312,7 @@ protected function getAboutRequest()
312312
313313 } else {
314314 // for HTTP post (form)
315- $ httpBody = \GuzzleHttp \Psr7 \build_query ($ formParams );
315+ $ httpBody = \GuzzleHttp \Psr7 \Query:: build ($ formParams );
316316 }
317317 }
318318
@@ -336,7 +336,7 @@ protected function getAboutRequest()
336336 $ headers
337337 );
338338
339- $ query = \GuzzleHttp \Psr7 \build_query ($ queryParams );
339+ $ query = \GuzzleHttp \Psr7 \Query:: build ($ queryParams );
340340 return new Request (
341341 'GET ' ,
342342 $ this ->config ->getHost () . $ resourcePath . ($ query ? "? {$ query }" : '' ),
0 commit comments